Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions apps/api/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ CLERK_WEBHOOK_SECRET=whsec_your_webhook_secret
OTEL_SERVICE_NAME=events.compsoc.api
OTEL_SERVICE_VERSION=development
OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318
# Required only when exporting directly to an authenticated OTLP backend such as Grafana Cloud.
# OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic%20PLACE"
1 change: 1 addition & 0 deletions apps/api/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const EnvSchema = z.object({
OTEL_SERVICE_NAME: z.string().default("events.compsoc.api"),
OTEL_SERVICE_VERSION: z.string().default("development"),
OTEL_EXPORTER_OTLP_ENDPOINT: z.string().url().default("http://127.0.0.1:4318"),
OTEL_EXPORTER_OTLP_HEADERS: z.string().min(1).optional(),
});

export const env = EnvSchema.parse(process.env);
Loading