()
| 747 | } |
| 748 | |
| 749 | function 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: |
no outgoing calls
no test coverage detected