fix(docs): redirect legacy instrumentation pages#3288
Open
dalaoyang wants to merge 2 commits into
Open
Conversation
|
@dalaoyang is attempting to deploy a commit to the langfuse Team on Vercel. A member of the Team first needs to authorize it. |
dalaoyang
marked this pull request as ready for review
July 10, 2026 13:44
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 changed
/docs/sdk/python/instrumentationto the current SDK instrumentation page./docs/opentelemetry/introductionto the current native OpenTelemetry integration page.Why
Both legacy URLs currently return 404 responses even though their canonical replacement pages exist. Exact redirects preserve old external links without changing current routes or adding broad wildcard behavior.
Closes #3222
Closes #3167
Validation
permanentRedirectsexport assertion:2 passedpnpm run format:check:All matched files use Prettier code style!node scripts/generate-cloudflare-redirects.js: generated 538 redirects_redirectsoutput contains both source/destination mappingsThe full Next.js build was not run locally, following the repository guidance for small redirect-only changes. CI will run the build and link checks on the declared Node.js 22 environment.
Greptile Summary
This PR adds two permanent redirects in
lib/redirects.jsto fix 404 responses on legacy documentation URLs that were previously live but lost their mappings during restructuring. The changes follow the established append-only, dated-group convention already used throughout the file./docs/sdk/python/instrumentation→/docs/observability/sdk/instrumentation, consistent with the adjacent sibling redirects at lines 753–757 that cover other/docs/sdk/python/*sub-paths but previously missed theinstrumentationleaf./docs/opentelemetry/introduction→/integrations/native/opentelemetry, consistent with the existing/docs/opentelemetry/get-startedand/docs/integrations/opentelemetryredirects pointing to the same destination.Confidence Score: 5/5
Two minimal, targeted redirect entries that fill known 404 gaps; no existing routes or logic are altered.
Both source paths are absent from all other redirect arrays in the file, so there is no risk of redirect loops or duplicate-source conflicts. The destination paths are already used as redirect targets elsewhere in the file, confirming they are live pages. The change strictly follows the established dated-group pattern and does not touch any other logic.
No files require special attention.
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A["/docs/sdk/python/instrumentation\n(legacy, 404)"] -->|301 Permanent Redirect| B["/docs/observability/sdk/instrumentation\n(current page)"] C["/docs/opentelemetry/introduction\n(legacy, 404)"] -->|301 Permanent Redirect| D["/integrations/native/opentelemetry\n(current page)"]%%{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["/docs/sdk/python/instrumentation\n(legacy, 404)"] -->|301 Permanent Redirect| B["/docs/observability/sdk/instrumentation\n(current page)"] C["/docs/opentelemetry/introduction\n(legacy, 404)"] -->|301 Permanent Redirect| D["/integrations/native/opentelemetry\n(current page)"]Reviews (1): Last reviewed commit: "fix(docs): redirect legacy instrumentati..." | Re-trigger Greptile