{"record":{"id":"4b2b56911dd1dee6","repo":"temporalio/temporal","slug":"w-v-v","errorCode":null,"errorMessage":"%w: %v=%v","messagePattern":"%w: %v=%v","errorType":"validation","errorClass":"unsupportedTraceExporterProtocol","httpStatus":null,"severity":"error","filePath":"common/telemetry/env.go","lineNumber":46,"sourceCode":"// SpanExportersFromEnv creates OTEL span exporters from environment variables.\nfunc SpanExportersFromEnv(\n\tenvVars envVarLookup,\n) (map[SpanExporterType]otelsdktrace.SpanExporter, error) {\n\texporters := map[SpanExporterType]otelsdktrace.SpanExporter{}\n\n\texporterTypes, ok := envVars(OtelTracesExporterTypesEnvKey)\n\tif !ok {\n\t\treturn exporters, nil\n\t}\n\n\tfor exporterType := range strings.SplitSeq(exporterTypes, \",\") {\n\t\tswitch SpanExporterType(exporterType) {\n\t\tcase OtelTracesOtlpExporterType:\n\t\t\t// only grpc is supported; fail if user requests a different protocol\n\t\t\tif protocol, exists := envVars(OtelExporterOtlpTracesProtocolEnvKey); exists {\n\t\t\t\tisSupported := protocol == OtelExporterOtlpTracesGrcpProtocol\n\t\t\t\tif !isSupported {\n\t\t\t\t\treturn nil, fmt.Errorf(\"%w: %v=%v\", unsupportedTraceExporterProtocol, OtelExporterOtlpTracesProtocolEnvKey, protocol)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// other OTEL configuration env variables are picked up automatically by the exporter itself\n\t\t\texporters[OtelTracesOtlpExporterType] = otlptracegrpc.NewUnstarted()\n\t\tcase \"none\":\n\t\t\t// ignored\n\t\tdefault:\n\t\t\treturn nil, fmt.Errorf(\"%w: %v=%v\", unsupportedTraceExporter, OtelTracesExporterTypesEnvKey, exporterType)\n\t\t}\n\t}\n\n\treturn exporters, nil\n}\n\n// ResourceServiceName returns the OpenTelemetry tracing service name for a Temporal service.\nfunc ResourceServiceName(\n\trsn primitives.ServiceName,","sourceCodeStart":28,"sourceCodeEnd":64,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/common/telemetry/env.go#L28-L64","documentation":"Error \"%w: %v=%v\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at common/telemetry/env.go:46 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bde624efd13fbd3843654058db6d9c716166318b","analyzedAt":"2026-09-01T07:18:39.080Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}