Skip to content

go/adbc:/drivers/flightsql convert slog messages to OTel trace spans and events #4589

Description

@birschick-bq

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions