Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Telemetry, Logging] Emit {OriginalFormat} as the last property of the log record #6111

Merged
merged 6 commits into from
Mar 18, 2025

Conversation

iliar-turdushev
Copy link
Contributor

@iliar-turdushev iliar-turdushev commented Mar 14, 2025

Updates the source-generated logging and the ExtendedLogger to emit the {OriginalFormat} property as the last item of the log record.

Fixes #5720

Microsoft Reviewers: Open in CodeFlow

Now {OriginalFormat} is emitted as the last item in the TagArray
Adjusts ExtendedLogger to always return {OriginalFormat} as the last tag in the list
Fixes ResourceMonitoring tests
Address PR comments
@iliar-turdushev iliar-turdushev marked this pull request as ready for review March 17, 2025 14:37
@iliar-turdushev iliar-turdushev requested review from a team as code owners March 17, 2025 14:37
@iliar-turdushev iliar-turdushev changed the title [Work in progress] Emit {OriginalFormat} as the last property of the log record [Telemetry, Logging] Emit {OriginalFormat} as the last property of the log record Mar 17, 2025
@iliar-turdushev iliar-turdushev merged commit 037c866 into dotnet:main Mar 18, 2025
6 checks passed
@iliar-turdushev iliar-turdushev deleted the logger-originalformat branch March 18, 2025 08:54
@iliar-turdushev iliar-turdushev restored the logger-originalformat branch March 18, 2025 09:01
@iliar-turdushev iliar-turdushev deleted the logger-originalformat branch March 18, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ExtendedLogger] {OriginalFormat} is incorrectly exported by OpenTelemetry
3 participants