temporalio/temporal · error

OTEL exporter connection %q not found

Error message

OTEL exporter connection %q not found

What it means

Error "OTEL exporter connection %q not found" thrown in temporalio/temporal.

Source

Thrown at common/telemetry/config.go:284

			Enabled:         cmp.Or(cfg.Retry.Enabled, retryDefaultEnabled),
			InitialInterval: cmp.Or(cfg.Retry.InitialInterval, retryDefaultInitialInterval),
			MaxInterval:     cmp.Or(cfg.Retry.MaxInterval, retryDefaultMaxInterval),
			MaxElapsedTime:  cmp.Or(cfg.Retry.MaxElapsedTime, retryDefaultMaxElapsedTime),
		}),
	}

	// work around https://github.com/open-telemetry/opentelemetry-go/issues/2940
	if cfg.Connection.Insecure {
		opts = append(opts, otlpmetricgrpc.WithInsecure())
	}

	if cfg.ConnectionName == "" {
		return otlpmetricgrpc.New(context.Background(), opts...)
	}

	conncfg, ok := ec.findNamedGrpcConnCfg(cfg.ConnectionName)
	if !ok {
		return nil, fmt.Errorf("OTEL exporter connection %q not found", cfg.ConnectionName)
	}
	return &sharedConnMetricExporter{
		baseOpts: opts,
		dialer:   conncfg,
	}, nil
}

func (ec *exportConfig) buildOtlpGrpcSpanExporter(
	cfg *otlpGrpcSpanExporter,
) (otelsdktrace.SpanExporter, error) {
	opts := []otlptracegrpc.Option{
		otlptracegrpc.WithEndpoint(cfg.Connection.Endpoint),
		otlptracegrpc.WithHeaders(cfg.Headers),
		otlptracegrpc.WithTimeout(cmp.Or(cfg.Timeout, 10*time.Second)),
		otlptracegrpc.WithDialOption(cfg.Connection.dialOpts()...),
		otlptracegrpc.WithRetry(otlptracegrpc.RetryConfig{
			Enabled:         cmp.Or(cfg.Retry.Enabled, retryDefaultEnabled),
			InitialInterval: cmp.Or(cfg.Retry.InitialInterval, retryDefaultInitialInterval),

View on GitHub (pinned to bde624efd1)

When it happens

Trigger: Thrown at common/telemetry/config.go:284 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of temporalio/temporal@bde624efd1 (2026-09-01). Data as JSON: /api/errors/3702acdcaf361e59. Report an issue: GitHub.