Skip to content

fix(agento11y): align JavaScript telemetry step with the OTel JS 2.x snippet - #751

Open
wcall wants to merge 1 commit into
mainfrom
fix/agento11y-js-otel-2x-resource
Open

wcall wants to merge 1 commit into
mainfrom
fix/agento11y-js-otel-2x-resource

Conversation

@wcall

@wcall wcall commented Nov 22, 2026

Copy link
Copy Markdown

What

Aligns the JavaScript row of the "Export traces and metrics" milestone in connect-agent-to-agent-observability-lj with the updated SDK docs snippet in grafana/sigil#2337.

The row told learners the snippet uses a resource it doesn't define and to create one with resourceFromAttributes. The fixed snippet now defines the resource itself and uses the OpenTelemetry JS 2.x spanProcessors option instead of the removed addSpanProcessor, so following both the snippet and this step no longer conflicts. The row now matches the Python row: install the 2.x packages listed under the snippet, and the snippet sets service.name to my-agent itself.

Only export-traces-and-metrics/content.json changes (one table row).

Issue

Refs grafana/website#37281.

Merge order

Merge after grafana/sigil#2337 is published to the docs site. Until then the linked snippet still lacks the resource definition.

Checks

  • content.json still parses as JSON.
  • Diff scanned for credentials: none.
  • Not run locally: strict guide validation (validate-json.yml), which CI runs. This edit only changes prose in an existing markdown block.
  • Not tested end to end in a live Grafana Cloud stack.

🤖 Generated with Claude Code

…snippet

The SDK docs snippet for JavaScript now defines its own resource and uses
the OpenTelemetry JS 2.x spanProcessors option (grafana/sigil#2337). Drop
the instruction to create a resource, and point learners at the 2.x
packages listed under the snippet.

Refs grafana/website#37281

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@wcall
wcall requested a review from chri2547 as a code owner November 22, 2026 16:35
@wcall

wcall commented Nov 22, 2026

Copy link
Copy Markdown
Author

Depends on grafana/sigil#2337, which fixes the JavaScript snippet this step refers to (spanProcessors option, defined resource). Merge this after #2337 is published to the docs site.

@chri2547 chri2547 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! Thanks for this update!

@chri2547 chri2547 added the deploy-preview Learning Hub website deploy preview (auto-added for *-lj PRs; add manually for other PRs) label Nov 23, 2026
@github-actions

Copy link
Copy Markdown

💻 Deploy preview available (fix(agento11y): align JavaScript telemetry step with the OTel JS 2.x snippet):

Questions? Ask in #docs-platform. (fffe8a6)
Generated at: 2026-11-23 19:29:19 UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy-preview Learning Hub website deploy preview (auto-added for *-lj PRs; add manually for other PRs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants