Skip to content

fix: add headers for cloud grafana - #76

Merged
HJyup merged 1 commit into
mainfrom
cloud
Aug 23, 2026
Merged

fix: add headers for cloud grafana#76
HJyup merged 1 commit into
mainfrom
cloud

Conversation

@HJyup

@HJyup HJyup commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings August 23, 2026 16:11
@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
events-comp-soc-com-web Building Building Preview Aug 23, 2026 4:11pm

@HJyup
HJyup merged commit a2d1bb6 into main Aug 23, 2026
5 of 6 checks passed
@HJyup
HJyup deleted the cloud branch August 23, 2026 16:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for configuring OTLP exporter headers (intended for authenticated backends like Grafana Cloud) via environment variables in the API app’s typed env layer and example env file.

Changes:

  • Add OTEL_EXPORTER_OTLP_HEADERS to the API env schema.
  • Document OTEL_EXPORTER_OTLP_HEADERS usage in apps/api/.env.example.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
apps/api/src/env.ts Introduces OTEL_EXPORTER_OTLP_HEADERS as an optional env var in the Zod schema.
apps/api/.env.example Adds commented guidance for configuring OTLP headers for authenticated OTLP backends.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread apps/api/src/env.ts
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(),
Comment thread apps/api/src/env.ts
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(),
Comment thread apps/api/.env.example
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants