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
I only just found that the way I've been registering log processors via AutoConfigurationCustomizer is seriously flawed, and worried other people may be doing the same:
Since this will register the log record processor after the BatchLogRecordProcessor, any mutations made by the log record processor may not be exported, although 99.9% (~) of the time the mutations will be exported since they will be made prior to the batch being exported.
One (non-obvious) workaround is to leverage AutoConfigurationCustomizer.addLogRecordProcessorCustomizer().
The text was updated successfully, but these errors were encountered:
trask
changed the title
Potentially common error when registering span processors via AutoConfigurationCustomizer?
Potentially common error when registering log record processors via AutoConfigurationCustomizer?
Jul 23, 2024
One option I've thought about is adding a option for SdkTracerProviderBuilder and SdkLoggerProviderBuilder to insert a processor at the front of the processing pipeline, rather than appending to the end.
I only just found that the way I've been registering log processors via AutoConfigurationCustomizer is seriously flawed, and worried other people may be doing the same:
Since this will register the log record processor after the BatchLogRecordProcessor, any mutations made by the log record processor may not be exported, although 99.9% (~) of the time the mutations will be exported since they will be made prior to the batch being exported.
One (non-obvious) workaround is to leverage
AutoConfigurationCustomizer.addLogRecordProcessorCustomizer()
.The text was updated successfully, but these errors were encountered: