You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
New Relic have a max length on attributes, and as such long stack traces are getting truncated.
We would like to customise the stack traces (filter lines, limit number of lines, root cause first etc)
Describe the solution you'd like
OpenTelemetryAppender is using LoggingEventMapper internally to omit events. Both classes are completely closed to extensions.
Allow extension of LoggingEventMapper
Add Function<Throwable,String> to LoggingEventMapper.Builder (as default extract current implementation of setThrowable)
change LoggingEventMapper.setThrowable to call the new function: attributes.put(SemanticAttributes.EXCEPTION_STACKTRACE, stacktraceConverter.apply(throwable));
Enable OpenTelemetryAppender configuration, for example:
overload install method with instance of LoggingEventMapper
overload start method with instance of LoggingEventMapper
Describe alternatives you've considered
The only alternative is to copy the code of OpenTelemetryAppender and LoggingEventMapper and change it as needed
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
New Relic have a max length on attributes, and as such long stack traces are getting truncated.
We would like to customise the stack traces (filter lines, limit number of lines, root cause first etc)
Describe the solution you'd like
OpenTelemetryAppender is using LoggingEventMapper internally to omit events. Both classes are completely closed to extensions.
overload install method with instance of LoggingEventMapper
overload start method with instance of LoggingEventMapper
Describe alternatives you've considered
The only alternative is to copy the code of OpenTelemetryAppender and LoggingEventMapper and change it as needed
Additional context
No response
The text was updated successfully, but these errors were encountered: