Uses of Class
codes.grow.packages.tempo.tracing.TracingConfig
Packages that use TracingConfig
Package
Description
Grow Codes SDK for Grafana Tempo.
-
Uses of TracingConfig in codes.grow.packages.tempo
Methods in codes.grow.packages.tempo that return TracingConfigModifier and TypeMethodDescriptionTempoTracingConfig.resolve()Resolves the settings against the process environment.Resolves the settings against an environment reader.static TracingConfigTempoTracing.withDefaults(TracingConfig config) Applies the Tempo defaults:native→http/protobuf, unset endpoint →http://127.0.0.1:4318(:4317for gRPC), gRPC header names lower-cased.static TracingConfigTempoTracing.withTenant(TracingConfig config, String tenantId) Returns a copy ofconfigthat sendstenantIdasX-Scope-OrgIDwith every export.Methods in codes.grow.packages.tempo with parameters of type TracingConfigModifier and TypeMethodDescriptionstatic io.opentelemetry.sdk.trace.export.SpanExporterTempoTracing.createExporter(TracingConfig config) Builds the official OTLP exporter:grpc→ OTLP/gRPC (lower-case metadata, e.g.static TempoTracingConfigTempoTracingConfig.from(TracingConfig config) Takes every field of a generic config as explicit; only an unset endpoint and a missing tenant header are filled from the environment.static TracingHandleTempoTracing.initTracing(TracingConfig config) Starts tracing from a generic config: every field is used as given; only an unset endpoint and a missingX-Scope-OrgIDheader are filled from the environment, andnativemeans OTLP over HTTP.static TracingConfigTempoTracing.withDefaults(TracingConfig config) Applies the Tempo defaults:native→http/protobuf, unset endpoint →http://127.0.0.1:4318(:4317for gRPC), gRPC header names lower-cased.static TracingConfigTempoTracing.withTenant(TracingConfig config, String tenantId) Returns a copy ofconfigthat sendstenantIdasX-Scope-OrgIDwith every export. -
Uses of TracingConfig in codes.grow.packages.tempo.tracing
Methods in codes.grow.packages.tempo.tracing that return TracingConfigModifier and TypeMethodDescriptionTracingConfig.Builder.build()Validates and builds.TracingHandle.config()The config this handle was created from.Methods in codes.grow.packages.tempo.tracing with parameters of type TracingConfigModifier and TypeMethodDescriptionstatic io.opentelemetry.sdk.trace.export.SpanExporterOtlpExporters.create(TracingConfig config) Creates an OTLP exporter for the config's protocol.io.opentelemetry.sdk.trace.export.SpanExporterSpanExporterFactory.create(TracingConfig config) Creates the exporter.static StringOtlpExporters.httpEndpoint(TracingConfig config) The HTTP endpoint: the configured URL, with/v1/tracesappended when it has no path.static TracingHandleTracing.initWith(TracingConfig config, SpanExporterFactory exporterFactory) Builds and starts the tracer provider: resource from the config, sampler, batch span processor and propagators; registers it globally whensetGlobalis true.static TracingHandleTracing.initWith(TracingConfig config, SpanExporterFactory exporterFactory, Map<String, io.opentelemetry.context.propagation.TextMapPropagator> extraPropagators) LikeTracing.initWith(TracingConfig, SpanExporterFactory)with propagators the service package provides (for example"datadog"or"sw8").static TracingHandleTracing.initWith(TracingConfig config, SpanExporterFactory exporterFactory, Map<String, io.opentelemetry.context.propagation.TextMapPropagator> extraPropagators, io.opentelemetry.sdk.trace.samplers.Sampler sampler, List<? extends io.opentelemetry.sdk.trace.SpanProcessor> extraProcessors) LikeTracing.initWith(TracingConfig, SpanExporterFactory, Map)with a sampler override (for example a remote sampler) and extra span processors.static io.opentelemetry.sdk.resources.ResourceTracing.resource(TracingConfig config) Builds the resource: SDK defaults plusservice.name,service.version,deployment.environment.name(current semantic conventions) together with the legacydeployment.environment, and the extra resource attributes.static io.opentelemetry.sdk.trace.samplers.SamplerTracing.sampler(TracingConfig config) Builds the sampler.Constructors in codes.grow.packages.tempo.tracing with parameters of type TracingConfigModifierConstructorDescriptionTracingHandle(io.opentelemetry.sdk.OpenTelemetrySdk sdk, TracingConfig config) Wraps an OpenTelemetry SDK a service package built itself.