Skip to content

Commit

Permalink
Adds special emphasis on tricky AI SDK OTEL instructions (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Dec 16, 2024
1 parent 712eea5 commit 6e75cc9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ Which results in a trace like [this one](https://smith.langchain.com/public/4d3a

### Node.js

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.

Add the `AISDKExporter` to the trace exporter to your OpenTelemetry setup.

```ts
Expand Down

0 comments on commit 6e75cc9

Please sign in to comment.