Skip to content

Conversation

@nareshz
Copy link
Contributor

@nareshz nareshz commented May 21, 2024

To enable tracing on Spanner layer, client can opt-in by following ways:

  1. Set the EnableEndToEndTracing flag in ClientConfig to true.
  2. Set the SPANNER_ENABLE_END_TO_END_TRACING environment variable to true.

If enabled a new http header x-goog-spanner-end-to-end-tracing will be passed in Spanner requests.

Note: Spanner tracing also requires trace context propagation. This needs to be setup while setting OpenTelemetry.

Design doc: go/cs-tracing-mvp

@nareshz nareshz requested review from a team as code owners May 21, 2024 08:00
@nareshz nareshz changed the title Add x-goog-spanner-end-to-end-tracing header for requests to SpanFE feat(spanner): Add x-goog-spanner-end-to-end-tracing header for requests to SpanFE May 21, 2024
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label May 22, 2024
@rahul2393 rahul2393 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 5, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 5, 2024
@nareshz nareshz changed the title feat(spanner): Add x-goog-spanner-end-to-end-tracing header for requests to SpanFE feat(spanner): Add x-goog-spanner-end-to-end-tracing header for requests to Spanner Jul 11, 2024
@codyoss
Copy link
Member

codyoss commented Jul 24, 2024

@rahul2393 can this be merged?

@harshachinta
Copy link
Contributor

@dsimil Is this ready to be merged. I assume that there is testing going on in backend and this needs to wait until backend is ready?

@rahul2393 rahul2393 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 5, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 5, 2024
@rahul2393 rahul2393 added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 5, 2024
if config.EnableServerSideTracing {
appendServerSideTracingHeader = true
}
if serverSideTracingEnvironmentVariable := os.Getenv("SPANNER_ENABLE_SERVER_SIDE_TRACING"); serverSideTracingEnvironmentVariable == "true" {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@harshachinta Added the option to enable server side using ENV variable. PTAL.

@rahul2393 rahul2393 added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Sep 27, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 27, 2024
@rahul2393 rahul2393 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 27, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 27, 2024
@rahul2393 rahul2393 merged commit 7f61cd5 into googleapis:main Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants