What feature or improvement would you like to see?
Currently, the FlightSQL go driver has instrumented slog messages (DebugContext, InfoContext, etc.) to log diagnostic messages.
However, the slog messages are (currently) only routed to the stderr stream and are not persisted to the file system or available to OTel endpoints.
I suggest that we port the slog messages to OTel tracing spans (internal.StartSpan / internal.EndSpanWithError) and events (span.AddEvent / span.RecordError) so that the information can be persisted to the file system or available to OTel endpoints.
There are other alternatives,
- add an
io.Writer implementation to the slog streaming implementation - for file system persistence.
- use the OTel logging bridge - for slog to OTel logging.
However, I'm assuming we are content to standardize on using OTel tracing.
What feature or improvement would you like to see?
Currently, the FlightSQL go driver has instrumented
slogmessages (DebugContext,InfoContext, etc.) to log diagnostic messages.However, the
slogmessages are (currently) only routed to thestderrstream and are not persisted to the file system or available to OTel endpoints.I suggest that we port the
slogmessages to OTel tracing spans (internal.StartSpan/internal.EndSpanWithError) and events (span.AddEvent/span.RecordError) so that the information can be persisted to the file system or available to OTel endpoints.There are other alternatives,
io.Writerimplementation to theslogstreaming implementation - for file system persistence.However, I'm assuming we are content to standardize on using OTel tracing.