{"record":{"id":"3702acdcaf361e59","repo":"temporalio/temporal","slug":"otel-exporter-connection-q-not-found","errorCode":null,"errorMessage":"OTEL exporter connection %q not found","messagePattern":"OTEL exporter connection %q not found","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"common/telemetry/config.go","lineNumber":284,"sourceCode":"\t\t\tEnabled:         cmp.Or(cfg.Retry.Enabled, retryDefaultEnabled),\n\t\t\tInitialInterval: cmp.Or(cfg.Retry.InitialInterval, retryDefaultInitialInterval),\n\t\t\tMaxInterval:     cmp.Or(cfg.Retry.MaxInterval, retryDefaultMaxInterval),\n\t\t\tMaxElapsedTime:  cmp.Or(cfg.Retry.MaxElapsedTime, retryDefaultMaxElapsedTime),\n\t\t}),\n\t}\n\n\t// work around https://github.com/open-telemetry/opentelemetry-go/issues/2940\n\tif cfg.Connection.Insecure {\n\t\topts = append(opts, otlpmetricgrpc.WithInsecure())\n\t}\n\n\tif cfg.ConnectionName == \"\" {\n\t\treturn otlpmetricgrpc.New(context.Background(), opts...)\n\t}\n\n\tconncfg, ok := ec.findNamedGrpcConnCfg(cfg.ConnectionName)\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"OTEL exporter connection %q not found\", cfg.ConnectionName)\n\t}\n\treturn &sharedConnMetricExporter{\n\t\tbaseOpts: opts,\n\t\tdialer:   conncfg,\n\t}, nil\n}\n\nfunc (ec *exportConfig) buildOtlpGrpcSpanExporter(\n\tcfg *otlpGrpcSpanExporter,\n) (otelsdktrace.SpanExporter, error) {\n\topts := []otlptracegrpc.Option{\n\t\totlptracegrpc.WithEndpoint(cfg.Connection.Endpoint),\n\t\totlptracegrpc.WithHeaders(cfg.Headers),\n\t\totlptracegrpc.WithTimeout(cmp.Or(cfg.Timeout, 10*time.Second)),\n\t\totlptracegrpc.WithDialOption(cfg.Connection.dialOpts()...),\n\t\totlptracegrpc.WithRetry(otlptracegrpc.RetryConfig{\n\t\t\tEnabled:         cmp.Or(cfg.Retry.Enabled, retryDefaultEnabled),\n\t\t\tInitialInterval: cmp.Or(cfg.Retry.InitialInterval, retryDefaultInitialInterval),","sourceCodeStart":266,"sourceCodeEnd":302,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/common/telemetry/config.go#L266-L302","documentation":"Error \"OTEL exporter connection %q not found\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at common/telemetry/config.go:284 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"}