-
Notifications
You must be signed in to change notification settings - Fork 772
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
[otlp] Add log exception attributes under feature flag #4892
[otlp] Add log exception attributes under feature flag #4892
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4892 +/- ##
==========================================
+ Coverage 83.23% 83.41% +0.18%
==========================================
Files 294 295 +1
Lines 12279 12294 +15
==========================================
+ Hits 10220 10255 +35
+ Misses 2059 2039 -20
Flags with carried forward coverage won't be shown. Click here to find out more.
|
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/LogRecordExtensions.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExperimentalFeatures.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExperimentalFeatures.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs
Outdated
Show resolved
Hide resolved
* Added ability to export attributes corresponding to `LogRecord.Exception` i.e. | ||
`exception.type`, `exception.message` and `exception.stacktrace`. These | ||
attributes will be exported when | ||
`OTEL_DOTNET_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTES` environment variable will be | ||
set to `true`. | ||
([#4892](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4892)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should move this below the other 2 "unreleased" entries right? I've been telling people recently to order things chronologically hopefully I'm not mistaken 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do most recent one at the top
https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry/CHANGELOG.md#unreleased
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vote for 1) the latest release should be at the top, the oldest release should be at the bottom 2) within a release, changes are ordered based on when the PR got merged (the latest one should be at the bottom).
Example for 1) https://github.com/dotnet/core/tree/main/release-notes/8.0#releases
Example for 2) https://github.com/dotnet/core/blob/main/release-notes/8.0/preview/8.0.0-rc.1.md#notable-fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vishweshbankwar The unreleased section is at the top, yes, but the new entry goes into the bottom of that section 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to get my eyes checked😆 . Fixed the sequence.
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpLogRecordProcessor.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpLogExporter.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sent a few nits but LGTM
Towards #4875
Design discussion issue #
Changes
Adds an experimental feature flag
OTEL_DOTNET_EXPERIMENTAL_EMIT_EXCEPTION_LOG_ATTRIBUTES
to allow exporting attributes corresponding toLogRecord.Exception
to otlp endpoint.Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes