Skip to content

Tooling: OpenTelemetry spans on every query #23

Description

@devituz

Goal

Emit OpenTelemetry spans (or be tracer-agnostic via go.opentelemetry.io/otel) for every database query, surfacing SQL text, dialect, duration, and row count. Live alongside the existing slow-query logger.

Acceptance criteria

  • New optional adapter adapters/otel (separate module — keeps core dep-free)
  • Wraps database.Connection so traces auto-propagate through ORM, query builder, and migrations
  • Example using Jaeger or stdout exporter
  • Doc paragraph

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions