Skip to content

[OpenTelemetry] Spanner change streams otel configuration cleanup - #40552

Merged
stankiewicz merged 2 commits into
apache:masterfrom
stankiewicz:spanner_cdc_otel_cleanup
Oct 14, 2026
Merged

stankiewicz merged 2 commits into
apache:masterfrom
stankiewicz:spanner_cdc_otel_cleanup

Conversation

@stankiewicz

Copy link
Copy Markdown
Contributor

SpannerIO has both per element open telemetry tracing and allows to configure Spanner Client to also add additional traces.
This change cleans up configuration so those two can be configured separately.

@github-actions

Copy link
Copy Markdown
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@stankiewicz
stankiewicz force-pushed the spanner_cdc_otel_cleanup branch from 00ecd70 to f333f5b Compare October 13, 2026 16:54
@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @nielm for label spanner.
Backup reviewer: chamikaramj (if the main reviewer is unresponsive, you can escalate to them by tagging their username)

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@stankiewicz

Copy link
Copy Markdown
Contributor Author

assign to next reviewer

@stankiewicz

Copy link
Copy Markdown
Contributor Author

nielm is on pto

/**
* Specifies whether OpenTelemetry tracing should start trace and span on each change record.
* For Spanner Client library tracing config, use SpannerConfig (withSpannerConfig).
*/
public ReadChangeStream withEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think withOpenTelemetryTracing() would read better as builder

withDatabaseId(blah).withOpenTelemetryTracing()

But also maybe this should be a little clearer on the tracing it enables,

withPerChangeRecordOpenTelementryTracing()

/** Specifies whether OpenTelemetry tracing is enabled. */
/**
* Specifies whether OpenTelemetry tracing should start trace and span on each change record.
* For Spanner Client library tracing config, use SpannerConfig (withSpannerConfig).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about
Spanner Client library tracing can be enabled via the SpannerConfig passed to withSpannerConfig.

@stankiewicz
stankiewicz requested a review from scwhittle October 14, 2026 09:05
@stankiewicz
stankiewicz merged commit 56c3aa2 into apache:master Oct 14, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants