docs: redirect legacy otel python sdk cookbook#3275
Open
ofeliacode wants to merge 1 commit into
Open
Conversation
|
Someone is attempting to deploy a commit to the langfuse Team on Vercel. A member of the Team first needs to authorize it. |
ofeliacode
force-pushed
the
fix-otel-python-sdk-cookbook-redirect
branch
from
July 14, 2026 19:27
46a1df2 to
f6560a1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Closes #2508
Adds a redirect for the legacy OpenTelemetry Python SDK cookbook URL:
/guides/cookbook/otel_integration_python_sdkto the current SDK instrumentation docs:
/docs/observability/sdk/instrumentationTest plan
git diff --checknpm exec --yes prettier -- --check lib/redirects.jsnode -c lib/redirects.jsnode -e "const { permanentRedirects } = require('./lib/redirects.js'); const target = permanentRedirects.find(([from]) => from === '/guides/cookbook/otel_integration_python_sdk'); if (!target) throw new Error('missing redirect'); if (target[1] !== '/docs/ observability/sdk/instrumentation') throw new Error('wrong target: ' + target[1]); console.log(target.join(' -> '));"Greptile Summary
This PR adds a single permanent redirect entry in
lib/redirects.jsto forward traffic from the removed legacy OTel Python SDK cookbook page (/guides/cookbook/otel_integration_python_sdk) to the current SDK instrumentation docs (/docs/observability/sdk/instrumentation). The target page exists and is already referenced as a destination by multiple other redirect rules.[source, destination]tuple format and the target MDX file (content/docs/observability/sdk/instrumentation.mdx) is confirmed to exist on disk.mainDocsReorder202507— placing a/guides/path between two/docs/paths — though this has no functional effect.Confidence Score: 5/5
Safe to merge — adds a single redirect entry pointing to a confirmed live page with no redirect chaining.
The change is minimal and correct: the target page exists on disk, is already used as a destination by several other redirect rules, and the tuple format matches all surrounding entries. The only observation is a slight sort-order deviation within the array, which has no effect on how redirects are resolved at runtime.
No files require special attention.
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A["User visits /guides/cookbook/otel_integration_python_sdk"] --> B["permanentRedirects lookup\n(mainDocsReorder202507 array)"] B --> C["301 Permanent Redirect"] C --> D["/docs/observability/sdk/instrumentation\n(content/docs/observability/sdk/instrumentation.mdx ✓)"]%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% flowchart TD A["User visits /guides/cookbook/otel_integration_python_sdk"] --> B["permanentRedirects lookup\n(mainDocsReorder202507 array)"] B --> C["301 Permanent Redirect"] C --> D["/docs/observability/sdk/instrumentation\n(content/docs/observability/sdk/instrumentation.mdx ✓)"]Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "docs: redirect legacy otel python sdk co..." | Re-trigger Greptile