Closed PatrikValo closed 4 weeks ago
All logging keys can also be changed by the logger
implementation. If your using the standard library slog
with our integration you can use ReplaceAttr
in HandlerOptions to replace any key you want.
Thanks!
Is your feature request related to a problem? Please describe. It would be nice to have an option to configure the logging keys for the tracing interceptor. Currently the keys are hardcoded and it makes it harder to keep the logging consistent with other components in my system. What do you think?
Describe the solution you'd like https://github.com/temporalio/sdk-go/blob/master/contrib/opentelemetry/tracing_interceptor.go
where by default
LoggingTraceIDKey="TraceID"
,LoggingSpanIDKey="SpanID"
or something similar to that.
Describe alternatives you've considered There is probably a workaround to create another interceptor which would basically does the same thing but it would use different keys and it would be responsible for mapping. So there would be all keys (default + custom).