{"record":{"id":"60764a51b9c88a96","repo":"thanos-io/thanos","slug":"tracing-with-type-s-is-not-supported","errorCode":null,"errorMessage":"tracing with type %s is not supported","messagePattern":"tracing with type (.+?) is not supported","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/tracing/client/factory.go","lineNumber":86,"sourceCode":"\t\ttracerProvider, err := jaeger.NewTracerProvider(ctx, logger, config)\n\t\tif err != nil {\n\t\t\treturn nil, nil, errors.Wrap(err, \"new tracer provider err\")\n\t\t}\n\t\ttracer, closerFunc := migration.Bridge(tracerProvider, logger)\n\t\treturn tracer, closerFunc, nil\n\tcase string(ElasticAPM):\n\t\treturn elasticapm.NewTracer(config)\n\tcase string(Lightstep):\n\t\treturn lightstep.NewTracer(ctx, config)\n\tcase string(OpenTelemetryProtocol):\n\t\ttracerProvider, err := otlp.NewTracerProvider(ctx, logger, config)\n\t\tif err != nil {\n\t\t\treturn nil, nil, errors.Wrap(err, \"new tracer provider err\")\n\t\t}\n\t\ttracer, closerFunc := migration.Bridge(tracerProvider, logger)\n\t\treturn tracer, closerFunc, nil\n\tdefault:\n\t\treturn nil, nil, errors.Errorf(\"tracing with type %s is not supported\", tracingConf.Type)\n\t}\n}\n\nfunc NoopTracer() opentracing.Tracer {\n\treturn &opentracing.NoopTracer{}\n}\n","sourceCodeStart":68,"sourceCodeEnd":93,"githubUrl":"https://github.com/thanos-io/thanos/blob/35b8b991177def87ed52dcf10f9b6d87f07282c8/pkg/tracing/client/factory.go#L68-L93","documentation":"NewTracer switches on tracingConf.Type and falls through to the default branch when the type matches none of the supported backends (stackdriver/googlecloud, jaeger, elasticapm, lightstep, otlp). It returns errors.Errorf('tracing with type %s is not supported'). The type string is matched after ToUpper, so casing is not the issue — only the literal backend name.","triggerScenarios":"Passing a tracing config whose 'type' value is anything other than the supported constants, e.g. 'zipkin', 'datadog', 'otlpgrpc', or a misspelling like 'jager'.","commonSituations":"Migrating configs from other tools (zipkin/datadog users), typos in the type field, or older configs using names removed/renamed in newer Thanos versions (e.g. lightstep deprecation).","solutions":["Set type to one of the supported values: JAEGER, OTLP, ELASTIC_APM, LIGHTSTEP, or STACKDRIVER/GOOGLE_CLOUD","Fix typos in the type field (exact string match, e.g. 'JAEGER' not 'jager')","Check Thanos docs/version for the backend name; some backends were removed or renamed across versions","Use an OTLP collector as a bridge if your vendor backend is unsupported"],"exampleFix":"// before\ntracing:\n  type: zipkin\n// after\ntracing:\n  type: OTLP\n  config:\n    client_type: http\n    endpoint: http://otel:4318","handlingStrategy":"validation","validationCode":"supported := map[string]bool{\"STACKDRIVER\": true, \"GOOGLE_CLOUD\": true, \"JAEGER\": true, \"ELASTIC_APM\": true, \"LIGHTSTEP\": true, \"OTLP\": true}\nif !supported[strings.ToUpper(tracingType)] {\n    return fmt.Errorf(\"tracing type %q not supported; use one of %v\", tracingType, []string{\"JAEGER\", \"OTLP\", \"STACKDRIVER\", \"ELASTIC_APM\"})\n}","typeGuard":null,"tryCatchPattern":"tracer, closer, err := tracing.NewTracer(ctx, logger, reg, cfgYaml)\nif err != nil && strings.Contains(err.Error(), \"is not supported\") {\n    logger.Error(err, \"unsupported tracing backend; fix the 'type' field\")\n    return err\n}","preventionTips":["Copy the backend name exactly from Thanos docs (case-insensitive but spelling matters)","Prefer OTLP as the universal backend for vendors without native support","Check the release notes when upgrading Thanos for removed/renamed backends","Add a CI check that asserts tracing.type against the supported list"],"tags":["tracing","configuration","unsupported-backend","thanos"],"backgroundTag":"unsupported-enum-value","analyzedSha":"35b8b991177def87ed52dcf10f9b6d87f07282c8","analyzedAt":"2026-09-07T01:49:59.689Z","contentChangedAt":"2026-09-07T01:49:59.689Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}