Skip to content

Track the consumer's opentelemetry major in sqlcommenter - #3

Open
graemer957 wants to merge 1 commit into
db-tracing-spans-sqlcommenterfrom
gr/otel_0_32
Open

Track the consumer's opentelemetry major in sqlcommenter#3
graemer957 wants to merge 1 commit into
db-tracing-spans-sqlcommenterfrom
gr/otel_0_32

Conversation

@graemer957

Copy link
Copy Markdown

What

Move sqlcommenter's opentelemetry to the 0.32 line (opentelemetry 0.32, tracing-opentelemetry 0.33).

How

The fork's OTel version has to match whatever the consuming app resolves, because OTel's global registries are per-version statics — a mismatched copy silently disables sqlcommenter (SQL comments stop, db.query spans keep exporting, nothing errors). This tracks a consumer moving onto the 0.32 line.

Testing

Compiled the consumer (platformed) against this branch on the 0.32 OTel line — green. The sqlcommenter API surface used (Injector, get_text_map_propagator, OpenTelemetrySpanExt) is unchanged across the bump.

OpenTelemetry keeps its propagator and tracer-provider registries in version-specific statics, so a second copy of `opentelemetry` in the tree doesn't share that state — `sqlcommenter` silently stops injecting SQL comments while `db.query` spans still export, with no error or warning. Pinning the fork's `opentelemetry`/`tracing-opentelemetry` to the line the consumer uses keeps exactly one copy in their dependency graph.
@graemer957 graemer957 self-assigned this Jun 26, 2026
@graemer957
graemer957 marked this pull request as ready for review June 26, 2026 12:43
@graemer957 graemer957 assigned graemer957 and unassigned graemer957 Jun 29, 2026
@graemer957
graemer957 marked this pull request as draft July 2, 2026 13:54
@graemer957
graemer957 marked this pull request as ready for review July 2, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant