Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b23c3be
Inject default Vercel tracing when Next can compile it
kakadiadarpan Oct 23, 2026
3d06132
Test the default Vercel tracing inject gates
kakadiadarpan Oct 23, 2026
82eec17
Gate default tracing on VERCEL_DEFAULT_TRACING_ENABLED and cap the AP…
kakadiadarpan Oct 27, 2026
5210af2
Inject default tracing when the app has no @opentelemetry/api
kakadiadarpan Oct 27, 2026
74a538a
Add changeset for default Vercel tracing
kakadiadarpan Oct 27, 2026
05e9e14
Name the default tracing service after the Vercel project
kakadiadarpan Oct 27, 2026
80ca841
Drop the Next.js support check from the tracing inject
kakadiadarpan Oct 28, 2026
cf92f68
Only log tracing inject skips with VERCEL_BUILDER_DEBUG
kakadiadarpan Oct 28, 2026
3e760ee
Move the default tracing gates to the modifyConfig call site
kakadiadarpan Oct 29, 2026
d798036
Drop the pageExtensions fallback from the tracing inject
kakadiadarpan Oct 29, 2026
25c81dc
Simplify the @opentelemetry/api version check
kakadiadarpan Oct 29, 2026
df02835
Inline and explain the @opentelemetry/api copy filter
kakadiadarpan Oct 29, 2026
d0b51ed
Inline the single-use wrapper resolve and entry push helpers
kakadiadarpan Oct 29, 2026
14eaa52
Skip the tracing inject when a parent folder has an instrumentation file
kakadiadarpan Oct 29, 2026
f7f7191
Name the tracing wrapper instrumentation.mjs
kakadiadarpan Oct 29, 2026
50069b5
Import @vercel/otel only on Node.js in the tracing wrapper
kakadiadarpan Oct 30, 2026
a8a24e6
Ship a pinned @opentelemetry/api 1.9.0 with the tracing inject
kakadiadarpan Oct 30, 2026
800c462
Require a pinned 1.9 API in the build image and skip nested copies
kakadiadarpan Oct 30, 2026
b15183d
Rename injectInstrumentation to instrumentationInject
kakadiadarpan Nov 2, 2026
8e8ced9
Use instrumentationInject in the changeset
kakadiadarpan Nov 4, 2026
19859c7
Say which @opentelemetry/api copy @vercel/otel uses on webpack
kakadiadarpan Nov 4, 2026
611e429
Skip the tracing inject when instrumentationInject already has entries
kakadiadarpan Nov 4, 2026
5ed6ee5
Skip the tracing inject when a copied package has runtime dependencies
kakadiadarpan Nov 4, 2026
b1f8d1f
Keep a failing @vercel/otel from failing every request
kakadiadarpan Nov 4, 2026
e505572
Build the tracing tree in a temp folder and rename it into place
kakadiadarpan Nov 4, 2026
3ff6296
Turn off runtime fetch spans when default tracing is injected
kakadiadarpan Nov 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/default-vercel-tracing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@next-community/adapter-vercel": patch
---

Inject default Vercel tracing into Next.js builds that have no instrumentation file. When the build enables it, the adapter copies `@vercel/otel` from the build image into `.vercel/otel/` and points `injectInstrumentation` at a wrapper there. Any failed check skips the inject without failing the build.
Comment thread
kakadiadarpan marked this conversation as resolved.
Resolved
3 changes: 3 additions & 0 deletions packages/adapter/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
normalizeRewrites,
} from './routing';
import { generateToolbarScript } from './toolbar';
import { injectDefaultTracing } from './tracing';
import type { VercelConfig } from './types';
import { escapeStringRegexp, getImagesConfig } from './utils';

Expand Down Expand Up @@ -89,6 +90,8 @@ const myAdapter: NextAdapter = {
);
}

await injectDefaultTracing(config, ctx);

return config;
},
async onBuildComplete({
Expand Down
Loading
Loading