You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GRAFANA_INSTANCE_ID: z.string().min(1).optional(),// Grafana Cloud instance ID (Basic auth username for OTLP)
162
-
GRAFANA_API_TOKEN: z.string().min(1).optional(),// Grafana Cloud API token (Basic auth password for OTLP)
163
-
SIM_DEPLOYMENT_ENVIRONMENT: z.string().min(1).optional(),// Deployment tier label (e.g., "production", "staging", "development"). Emitted as the stable `deployment.environment.name` resource attribute on Trigger.dev telemetry to match the rest of the Sim OTEL stack.
161
+
GRAFANA_OTLP_HEADERS: z.string().min(1).optional(),// Comma-separated key=value headers for OTLP requests (e.g., "Authorization=Basic <base64(instanceId:token)>"). Same format as the OTEL_EXPORTER_OTLP_HEADERS spec.
162
+
GRAFANA_DEPLOYMENT_ENVIRONMENT: z.string().min(1).optional(),// Deployment tier label (e.g., "production", "staging", "development"). Emitted as the stable `deployment.environment.name` resource attribute on Trigger.dev telemetry to match the rest of the Sim OTEL stack.
164
163
165
164
// External Services
166
165
BROWSERBASE_API_KEY: z.string().min(1).optional(),// Browserbase API key for browser automation
'Grafana OTLP telemetry is partially configured. Set GRAFANA_OTLP_ENDPOINT, GRAFANA_INSTANCE_ID, and GRAFANA_API_TOKEN together, or leave all three unset.'
19
+
'Grafana OTLP telemetry is partially configured. Set GRAFANA_OTLP_ENDPOINT, GRAFANA_OTLP_HEADERS, and GRAFANA_DEPLOYMENT_ENVIRONMENT together, or leave all three unset.'
18
20
)
19
21
}
20
22
23
+
/**
24
+
* Parse OTLP headers per the OTEL spec format `key1=value1,key2=value2`.
25
+
* Values are URL-decoded; keys/values are trimmed; empty entries are skipped.
0 commit comments