Skip to content

docs: Adds OTEL info callout #767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 9, 2025
Merged
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions docs/observability/how_to_guides/trace_with_vercel_ai_sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ Which results in a trace like [this one](https://smith.langchain.com/public/4d3a

### Node.js

:::note
The official `@opentelemetry/sdk-node` client SDK is [currently experimental](https://github.com/open-telemetry/opentelemetry-js?tab=readme-ov-file#package-version-compatibility) and pushes breaking changes in minor version updates.

`@opentelemetry/[email protected]` is only fully supported if you have `langsmith>=0.3.22` installed.

If you are on an older version of `langsmith`, install the previous version, [`@opentelemetry/[email protected]`](https://www.npmjs.com/package/@opentelemetry/sdk-node?activeTab=versions) and `@opentelemetry/[email protected]`.
:::

First, learn more how to setup OpenTelemetry instrumentation within your Node.js app [here](https://opentelemetry.io/docs/languages/js/getting-started/nodejs/#setup).

In particular, you will need to ensure that OTEL setup and configuration run before your application logic. One tool commonly used for this task are Node's [`--require`](https://nodejs.org/api/cli.html#-r---require-module) or `--import` flags.
Expand Down
Loading