Skip to content

DOC-6304 DOC-6305 DOC-6306 DOC-6308 Client observability docs#2854

Merged
andy-stark-redis merged 24 commits intomainfrom
DOC-6302-otel-overview
Mar 12, 2026
Merged

DOC-6304 DOC-6305 DOC-6306 DOC-6308 Client observability docs#2854
andy-stark-redis merged 24 commits intomainfrom
DOC-6302-otel-overview

Conversation

@andy-stark-redis
Copy link
Copy Markdown
Contributor

@andy-stark-redis andy-stark-redis commented Mar 5, 2026

Don't be deceived by the branch name, the epic for this is actually DOC-6304 :-) node-redis will have support for this soon, but I'll make a separate PR for the docs to merge when it is released.

A few things to consider:

  • I've attempted to give a brief flavour of the tracing process, but let me know if you think it's too much or not detailed enough.
  • The attribute badges seem like they might be useful to users, but maybe they're intended more as an internal guide for implementation?
  • I've added links to the observability docs from a few relevant places, but if you can think of any other pages that should have links then let me know.

Note

Medium Risk
Adds new site-wide conditional JS/CSS rendering for observability metrics plus a large JSON spec; regressions could affect page rendering or build/runtime behavior, though changes are gated behind a page flag.

Overview
Adds a new client observability documentation section: an overview page (/develop/clients/observability) with metric groups/reference, plus new per-client observability guides for go-redis and redis-py (including new example snippets). Existing Go docs are updated to link to the new dedicated observability page, and the general error-handling guide now points readers to observability instrumentation.

Introduces a JSON-backed metric spec (data/client_obs_metrics.json) and a new otel-metric-groups shortcode that embeds the JSON and sets a hasOtelMetrics flag. The site base template then conditionally loads new static/js/otel-metrics.js and static/css/otel-metrics.css to transform that embedded JSON into a navigable, styled metrics/attributes reference (with anchors and copy-link behavior).

Written by Cursor Bugbot for commit 5c30b13. This will update automatically on new commits. Configure here.

@andy-stark-redis andy-stark-redis requested review from a team and mortensi March 5, 2026 13:48
@andy-stark-redis andy-stark-redis self-assigned this Mar 5, 2026
@andy-stark-redis andy-stark-redis added the clients Client library docs label Mar 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 5, 2026

DOC-6302

@jit-ci
Copy link
Copy Markdown

jit-ci bot commented Mar 5, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Copy link
Copy Markdown
Collaborator

@dwdougherty dwdougherty left a comment

Choose a reason for hiding this comment

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

Just one nitpick.

Comment on lines +130 to +131
you are interested in, although all metrics in the group will be collected even
if you don't use them. The metrics in each group are described in the
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.

although all metrics in the group will be collected even if you don't use them
This is not accurate. We have two metric groups that are enabled by default, (resiliency and connection-basic) and the metrics in those groups are only collected when OTel is enabled.

Comment on lines +137 to +138
visualize the metrics collected by OTel. This provides a target endpoint
that you specify when you configure the client in your application. The tool then
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.

This provides a target endpoint that you specify when you configure the client in your application

We actually push metrics to an otel collector. The otel collector provides an endpoint for Prometheus (or other storage layers) to scrape, and Grafana (or other monitoring tools) can then get the metrics from Prometheus. But it's not accurate to say that we Grafana provides an endpoint we use in the client init.

@andy-stark-redis
Copy link
Copy Markdown
Contributor Author

Great - thanks everyone for your input into this!

@andy-stark-redis andy-stark-redis merged commit fe17e4b into main Mar 12, 2026
47 checks passed
@andy-stark-redis andy-stark-redis deleted the DOC-6302-otel-overview branch March 12, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients Client library docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants