Skip to content

docs: refine observability guide per PR #14462 review comments - #15411

Open
jinseopkim0 wants to merge 1 commit into
mainfrom
docs-observability-guide-followup
Open

jinseopkim0 wants to merge 1 commit into
mainfrom
docs-observability-guide-followup

Conversation

@jinseopkim0

Copy link
Copy Markdown
Contributor

Follow-up to #14462 addressing remaining review comments in docs/observability_guide.md:

  1. Move Technical Considerations to Section 2.
  2. Explain why to combine tracing and metrics via exemplars.
  3. Clarify log correlation works with any OpenTelemetry-compatible trace backend.
  4. Remove redundant Disabling Tracing section.
  5. Add Viewing Telemetry in Google Cloud links.

b/588573781

@jinseopkim0
jinseopkim0 requested a review from lqiu96 December 2, 2026 23:33
@jinseopkim0
jinseopkim0 marked this pull request as ready for review December 2, 2026 23:33
@jinseopkim0
jinseopkim0 requested a review from a team as a code owner December 2, 2026 23:33
@jinseopkim0
jinseopkim0 enabled auto-merge (squash) December 2, 2026 23:33

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request restructures and updates the observability guide (docs/observability_guide.md). Key changes include moving the 'Technical Considerations' section to the beginning, expanding the explanation of exemplar correlation, clarifying that log correlation is compatible with any OpenTelemetry trace backend, removing the section on disabling tracing, and adding a new section on viewing telemetry in Google Cloud. The reviewer suggested a minor documentation improvement in section 5.2 to explicitly mention 'CompositeTracerFactory' at the end of a sentence for better clarity and completeness.

To emit both OpenTelemetry spans and client-level metrics with trace exemplars, configure both `SdkTracerProvider` and `SdkMeterProvider` on your `OpenTelemetrySdk` and combine `OpenTelemetryTracingFactory` and `OpenTelemetryMetricsFactory` using `CompositeTracerFactory`:
Metrics provide always-on aggregate signals (such as latency distributions and error rates for dashboards and alerting), while traces provide detailed per-request breakdowns (retries, backoff, and individual wire attempts). Combining both via `CompositeTracerFactory` attaches **trace exemplars** (`trace_id` and `span_id`) to metric histogram buckets, letting you jump directly from a latency spike or error anomaly on a chart into a representative trace for that outlier.

Configure both `SdkTracerProvider` and `SdkMeterProvider` on your `OpenTelemetrySdk` and combine `OpenTelemetryTracingFactory` and `OpenTelemetryMetricsFactory`:

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.

medium

For completeness and clarity, the sentence should end with 'using CompositeTracerFactory:' to match the style of the previous version of this guide and clearly specify the class used to combine the factories.

This branch has not been deployed

No deployments
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