GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — Configurable exception.* attribute resolution by jack-berg · Pull Request #7266 · open-telemetry/opentelemetry-java Conversation
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #7266 +/- ## ============================================ - Coverage 89.83% 89.75% -0.08% - Complexity 6895 6977 +82 ============================================ Files 786 797 +11 Lines 20793 21165 +372 Branches 2026 2056 +30 ============================================ + Hits 18679 18997 +318 - Misses 1469 1505 +36 - Partials 645 663 +18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…y-java into exception-attribute-resolver
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
cc @HaloFour |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Alright I've refactored this to reflect the recommendation from this convo to consolidate into a single method. Please take another look when you can @trask! Would love to get this merged to unblock #7281, which I think will make a nice positive perf impact for many users. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| public Object put(AttributeKey<?> key, Object value) { | ||
| public Object put(AttributeKey<?> key, @Nullable Object value) { | ||
| if (value == null) { | ||
| return null; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
does this change have any effect on existing behaviors that we should be aware of?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
No it shouldn't.
I wasn't quite remembering why I added this in the first place, so I retraced my steps and determined:
ExceptionAttributeResolver.AttributeSetter#setAttribute accepts a @Nullable T value. We want this because we recently updated Span, LogRecord setAttribute methods to accept @Nullable values.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hey Folks, as a followup to this PR, is there work planned to make the log4j / logback appenders use the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
hi @philsttr, can you open an issue in the java instrumentation repo where those appenders live? thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Done! open-telemetry/opentelemetry-java-instrumentation#14485 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Part of [OTEP 4430](https://github.com/open-telemetry/opentelemetry-specification/blob/main/oteps/4430-span-event-api-deprecation-plan.md). This could be considered "just a convenience", but (in addition to a very nice convenience) it also unlocks two additional features: - Performance optimization since the SDK can take `OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT` into consideration when generating large `exception.stacktrace` attributes (a very real issue in the Java world: open-telemetry/opentelemetry-java#7281) - (Future) customization of exception stacktraces (we have experimental support for this in Java, e.g. to support "smarter" truncation of long `exception.stacktrace` attributes: open-telemetry/opentelemetry-java#7266) Prototype: open-telemetry/opentelemetry-java#7182 --------- Co-authored-by: Robert Pająk <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Exception stack trace to string conversion customization
There was an error while loading. Please reload this page.