Skip to content

Commit 6947013

Browse files
committed
feat(otel): implemetn otel
1 parent c50f9d7 commit 6947013

7 files changed

Lines changed: 2419 additions & 176 deletions

File tree

.env.example

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# OpenTelemetry Configuration
2+
3+
# Individual endpoint configuration (preferred)
4+
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces
5+
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:4318/v1/metrics
6+
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=http://localhost:4318/v1/logs
7+
8+
# Authentication headers
9+
# Examples:
10+
# OTEL_EXPORTER_OTLP_HEADERS=Authorization=Basic {base64-encoded-credentials}
11+
# OTEL_EXPORTER_OTLP_HEADERS=x-api-key={your-api-key}
12+
OTEL_EXPORTER_OTLP_HEADERS=
13+
14+
# Service name
15+
OTEL_SERVICE_NAME=quintet

next.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,9 @@ module.exports = {
6262
unoptimized: true
6363
},
6464
poweredByHeader: false,
65-
compress: false // already gzipped with the `HTTP server`. No need with `Next.js`.
65+
compress: false, // already gzipped with the `HTTP server`. No need with `Next.js`.
66+
serverExternalPackages: [
67+
"@opentelemetry/auto-instrumentations-node",
68+
"@opentelemetry/sdk-node"
69+
]
6670
};

0 commit comments

Comments
 (0)