temporalio/temporal · error
unsupported metric exporter type: %T
Error message
unsupported metric exporter type: %T
What it means
Error "unsupported metric exporter type: %T" thrown in temporalio/temporal.
Source
Thrown at common/telemetry/config.go:249
}
return out, nil
}
func (ec *exportConfig) MetricExporters() ([]metric.Exporter, error) {
out := make([]metric.Exporter, 0, len(ec.Exporters))
for _, expcfg := range ec.Exporters {
if !strings.HasPrefix(expcfg.Kind.Signal, "metric") {
continue
}
switch spec := expcfg.Spec.(type) {
case *otlpGrpcMetricExporter:
metricexp, err := ec.buildOtlpGrpcMetricExporter(spec)
if err != nil {
return nil, err
}
out = append(out, metricexp)
default:
return nil, fmt.Errorf("unsupported metric exporter type: %T", spec)
}
}
return out, nil
}
func (ec *exportConfig) buildOtlpGrpcMetricExporter(
cfg *otlpGrpcMetricExporter,
) (metric.Exporter, error) {
dopts := cfg.Connection.dialOpts()
opts := []otlpmetricgrpc.Option{
otlpmetricgrpc.WithEndpoint(cfg.Connection.Endpoint),
otlpmetricgrpc.WithHeaders(cfg.Headers),
otlpmetricgrpc.WithTimeout(cmp.Or(cfg.Timeout, 10*time.Second)),
otlpmetricgrpc.WithDialOption(dopts...),
otlpmetricgrpc.WithRetry(otlpmetricgrpc.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:249 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/0157b328136ae3c8.
Report an issue: GitHub.