Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 2d00e99

Browse files
committed
chore: rm comment
1 parent 831a699 commit 2d00e99

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

apps/api/src/plugins/openTelemetry.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PeriodicExportingMetricReader } from '@opentelemetry/sdk-metrics'
77
import { PgInstrumentation } from '@opentelemetry/instrumentation-pg'
88
import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-node'
99

10-
import { env } from '@config/env'
10+
// import { env } from '@config/env'
1111

1212
const metricReader = new PeriodicExportingMetricReader({
1313
exporter: new OTLPMetricExporter(),
@@ -21,13 +21,15 @@ export const openTelemetryPlugin = new Elysia({
2121
instrumentations: [new PgInstrumentation()],
2222
spanProcessors: [
2323
new BatchSpanProcessor(
24-
new OTLPTraceExporter({
25-
url: 'https://api.axiom.co/v1/traces',
26-
headers: {
27-
Authorization: `Bearer ${env.AXIOM_TOKEN}`,
28-
'X-Axiom-Dataset': env.AXIOM_DATASET_NAME,
29-
},
30-
}),
24+
new OTLPTraceExporter(
25+
// {
26+
// url: 'https://api.axiom.co/v1/traces',
27+
// headers: {
28+
// Authorization: `Bearer ${env.AXIOM_TOKEN}`,
29+
// 'X-Axiom-Dataset': env.AXIOM_DATASET_NAME,
30+
// },
31+
// }
32+
),
3133
),
3234
],
3335
metricReader,

0 commit comments

Comments
 (0)