MCPcopy Index your code
hub / github.com/codeaashu/claude-code / parseOtelHeadersEnvVar

Function parseOtelHeadersEnvVar

src/utils/telemetry/instrumentation.ts:749–761  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

747}
748
749function parseOtelHeadersEnvVar(): Record<string, string> {
750 const headers: Record<string, string> = {}
751 const envHeaders = process.env.OTEL_EXPORTER_OTLP_HEADERS
752 if (envHeaders) {
753 for (const pair of envHeaders.split(',')) {
754 const [key, ...valueParts] = pair.split('=')
755 if (key && valueParts.length > 0) {
756 headers[key.trim()] = valueParts.join('=').trim()
757 }
758 }
759 }
760 return headers
761}
762
763/**
764 * Get configuration for OTLP exporters including:

Callers 1

getOTLPExporterConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected