Skip to content

Commit 5d4166b

Browse files
c-ehrlichmanototh
andauthored
Add schema url to Gen AI quickstart and Next.js example (#406)
Co-authored-by: Mano Toth <[email protected]>
1 parent deec514 commit 5d4166b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

ai-engineering/quickstart.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ To send data to Axiom, configure a tracer. For example, use a dedicated instrume
121121
const sdk = new NodeSDK({
122122
resource: resourceFromAttributes({
123123
[ATTR_SERVICE_NAME]: 'my-ai-app', // Replace with your service name
124+
},
125+
{
126+
// Use the latest schema version
127+
// Info: https://opentelemetry.io/docs/specs/semconv/
128+
schemaUrl: 'https://opentelemetry.io/schemas/1.37.0',
124129
}),
125130
spanProcessor: new SimpleSpanProcessor(
126131
new OTLPTraceExporter({

guides/opentelemetry-nextjs.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ OpenTelemetry provides a standardized way to collect and export telemetry data f
4242
const sdk = new NodeSDK({
4343
resource: resourceFromAttributes({
4444
[ATTR_SERVICE_NAME]: "nextjs-otel-example",
45+
}, {
46+
// Use the latest schema version
47+
// Info: https://opentelemetry.io/docs/specs/semconv/
48+
schemaUrl: 'https://opentelemetry.io/schemas/1.37.0',
4549
}) as Resource,
4650
spanProcessor: new SimpleSpanProcessor(
4751
new OTLPTraceExporter({

0 commit comments

Comments
 (0)