Skip to content

fix(weave): restore broken otel docs page + correct OTLP endpoint guidance#2771

Draft
gtarpenning wants to merge 2 commits into
mainfrom
griffin/fix-otel-otlp-traces-endpoint-doc
Draft

fix(weave): restore broken otel docs page + correct OTLP endpoint guidance#2771
gtarpenning wants to merge 2 commits into
mainfrom
griffin/fix-otel-otlp-traces-endpoint-doc

Conversation

@gtarpenning

@gtarpenning gtarpenning commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Two fixes to weave/guides/tracking/otel.mdx:

  • Restore the broken page (urgent). docs(weave): enable Twoslash on TypeScript code blocks #2757 enabled twoslash here, and otel.mdx is the only weave page with twoslash TS blocks. The build now throws a Shiki error, Language console not found (raised while twoslash renders hover JSDoc), so the live page serves Mintlify's "🚧 A parsing error occured" boundary instead of content. Reverts the twoslash keyword and the // @noErrors lines docs(weave): enable Twoslash on TypeScript code blocks #2757 added, restoring the pre-docs(weave): enable Twoslash on TypeScript code blocks #2757 content. Verified rendering with mint dev.
  • Correct OTLP endpoint guidance. Renames the example variable OTEL_EXPORTER_OTLP_ENDPOINT to WEAVE_TRACES_ENDPOINT: it was named identically to the real env var, so copying the value into the env var (or using opentelemetry-instrument) makes the OTel SDK append /v1/traces -> .../otel/v1/traces/v1/traces 404 (~273/day in prod). Adds a callout pointing env-var setups at signal-specific OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.

Testing

mint dev renders the page (it serves the parse-error boundary on main); mint validate passes. cc #2757 author re: the twoslash revert.

The example variable was named `OTEL_EXPORTER_OTLP_ENDPOINT` and set to the
full `.../otel/v1/traces` URL. Passed to `endpoint=`/`url=` it works, but
lifting that value into the real env var (or using `opentelemetry-instrument`)
makes the OTel SDK append `/v1/traces` -> `.../otel/v1/traces/v1/traces`, a 404.

Rename the example var to `WEAVE_TRACES_ENDPOINT` and add a callout pointing
env-var setups at the signal-specific `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
wandb 🟢 Ready View Preview Jun 15, 2026, 9:45 PM

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

📚 Mintlify Preview Links

🔗 View Full Preview

📝 Changed (1 total)

📄 Pages (1)

File Preview
weave/guides/tracking/otel.mdx Otel

🤖 Generated automatically when Mintlify deployment succeeds
📍 Deployment: b92daf1 at 2026-06-15 22:16:03 UTC

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

🔗 Link Checker Results

All links are valid!

No broken links were detected.

Checked against: https://wb-21fd5541-griffin-fix-otel-otlp-traces-endpoint-doc.mintlify.app

PR #2757 enabled twoslash on this page's 10 TypeScript blocks. otel.mdx is
the only weave page with twoslash TS blocks, and the build now fails with
"Language `console` not found" (Shiki, raised while twoslash renders hover
JSDoc), so the live page serves Mintlify's "parsing error" boundary.

Revert the twoslash keyword and the `// @noErrors` directives it added,
restoring the pre-#2757 content. Verified with `mint dev`: the page
compiles and renders.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gtarpenning gtarpenning changed the title docs(weave): prevent OTLP double-path 404s in otel ingest guide fix(weave): restore broken otel docs page + correct OTLP endpoint guidance Jun 15, 2026
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