Skip to content

Commit 3e3472b

Browse files
committed
Notes on vercel
1 parent 60dca69 commit 3e3472b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ A working example can be found in the `examples/cloudflare-worker` directory.
9999

100100
### Next.js / Vercel
101101

102-
Vercel provides a comprehensive OpenTelemetry integration through the `@vercel/otel` package. After following [their integration instructions](https://vercel.com/docs/otel), Add the following two env variables to your project:
102+
Vercel provides a comprehensive OpenTelemetry integration through the `@vercel/otel` package. After following [their integration instructions](https://vercel.com/docs/otel), Add the following env variables to your project:
103103

104104
```sh
105105
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://logfire-api.pydantic.dev/v1/traces
@@ -109,6 +109,9 @@ OTEL_EXPORTER_OTLP_HEADERS='Authorization=your-write-token'
109109

110110
The above will point the instrumentation to Logfire.
111111

112+
> [!NOTE]
113+
> The Vercel production deployments have a caching mechanism that might prevent the changes from taking effect immediately or spans being reported. If you are not seeing spans in Logfire, you can [clear the data cache for your project](https://vercel.com/docs/data-cache/manage-data-cache).
114+
112115
Optionally, you can use the Logfire API package for creating manual spans. Install the `@pydantic/logfire-api` NPM package and call the respective methods from your server-side code:
113116

114117
```tsx

0 commit comments

Comments
 (0)