Uses of Class
codes.grow.packages.skywalking.tracing.TracingConfig
Packages that use TracingConfig
Package
Description
Grow Codes SDK for Apache SkyWalking.
-
Uses of TracingConfig in codes.grow.packages.skywalking
Methods in codes.grow.packages.skywalking that return TracingConfigModifier and TypeMethodDescriptionstatic TracingConfigSkyWalkingTracing.withDefaults(TracingConfig config, SkyWalkingConfig skywalking) Fills the open fields of a tracing config from the SkyWalking settings: without an endpoint, the endpoint becomesSkyWalkingConfig.otlpEndpoint(); a protocol equal to theTracingConfigtemplate default (http/protobuf) counts as unset and becomesSkyWalkingConfig.otlpProtocol()(default grpc, the only OTLP transport OAP 10.4 serves) — the same rule as TypeScript, Go and Python.Methods in codes.grow.packages.skywalking with parameters of type TracingConfigModifier and TypeMethodDescriptionstatic io.opentelemetry.sdk.trace.export.SpanExporterSkyWalkingTracing.createSpanExporter(TracingConfig config) Creates the span exporter (seeSkyWalkingTracing.exporterFactory()).SkyWalkingClient.initTracing(TracingConfig tracing) SkyWalkingTracing.initTracing(TracingConfig, SkyWalkingConfig)with this client's configuration (OTLP endpoint, protocol, headers, token, TLS).static TracingHandleSkyWalkingTracing.initTracing(TracingConfig config) Starts tracing with the SkyWalking settings from the environment (SkyWalkingConfig.fromEnv()).static TracingHandleSkyWalkingTracing.initTracing(TracingConfig config, SkyWalkingConfig skywalking) Starts tracing that exports to SkyWalking OAP.static TracingConfigSkyWalkingTracing.withDefaults(TracingConfig config, SkyWalkingConfig skywalking) Fills the open fields of a tracing config from the SkyWalking settings: without an endpoint, the endpoint becomesSkyWalkingConfig.otlpEndpoint(); a protocol equal to theTracingConfigtemplate default (http/protobuf) counts as unset and becomesSkyWalkingConfig.otlpProtocol()(default grpc, the only OTLP transport OAP 10.4 serves) — the same rule as TypeScript, Go and Python. -
Uses of TracingConfig in codes.grow.packages.skywalking.tracing
Methods in codes.grow.packages.skywalking.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.skywalking.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.skywalking.tracing with parameters of type TracingConfigModifierConstructorDescriptionTracingHandle(io.opentelemetry.sdk.OpenTelemetrySdk sdk, TracingConfig config) Wraps an OpenTelemetry SDK a service package built itself.