Uses of Class
codes.grow.packages.otelcollector.tracing.TracingConfig
Packages that use TracingConfig
Package
Description
Grow Codes SDK for OpenTelemetry Collector.
-
Uses of TracingConfig in codes.grow.packages.otelcollector
Methods in codes.grow.packages.otelcollector that return TracingConfigModifier and TypeMethodDescriptionstatic TracingConfigOtelCollectorTracing.resolve(TracingConfig explicit, OtelCollectorConfig defaults) Merges an explicit tracing config over collector defaults.OtelCollectorConfig.toTracingConfig()The tracing settings of the traces signal: service fields, resource, endpoint, protocol, headers, sampler, propagators, batch, TLS and compression.Methods in codes.grow.packages.otelcollector with parameters of type TracingConfigModifier and TypeMethodDescriptionstatic io.opentelemetry.sdk.trace.export.SpanExporterOtelCollectorTracing.createSpanExporter(TracingConfig config) Builds the official OTLP span exporter for a tracing config:http/protobuf→OtlpHttpSpanExporter,grpc→OtlpGrpcSpanExporter.OtelCollectorClient.initTracing(TracingConfig tracing) Tracing with an explicit config over this client's config (seeOtelCollectorTracing.resolve(codes.grow.packages.otelcollector.tracing.TracingConfig, codes.grow.packages.otelcollector.OtelCollectorConfig));OtelCollectorClient.close()shuts it down.static TracingHandleOtelCollectorTracing.initTracing(TracingConfig config) Sets up tracing with an explicit config over collector defaults from the environment.static TracingHandleOtelCollectorTracing.initTracing(TracingConfig config, OtelCollectorConfig defaults) Sets up tracing with an explicit config over collector defaults (seeOtelCollectorTracing.resolve(codes.grow.packages.otelcollector.tracing.TracingConfig, codes.grow.packages.otelcollector.OtelCollectorConfig)).static TracingConfigOtelCollectorTracing.resolve(TracingConfig explicit, OtelCollectorConfig defaults) Merges an explicit tracing config over collector defaults. -
Uses of TracingConfig in codes.grow.packages.otelcollector.tracing
Methods in codes.grow.packages.otelcollector.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.otelcollector.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.otelcollector.tracing with parameters of type TracingConfigModifierConstructorDescriptionTracingHandle(io.opentelemetry.sdk.OpenTelemetrySdk sdk, TracingConfig config) Wraps an OpenTelemetry SDK a service package built itself.