Package codes.grow.packages.skywalking.tracing
package codes.grow.packages.skywalking.tracing
-
ClassDescriptionConverts SDK attribute values (
AttrValue: String, numbers, Boolean, lists, maps) into OpenTelemetryAttributes.OTLP span exporters (gRPC and HTTP/protobuf) configured from aTracingConfig: endpoint, headers, compression, export timeout and TLS.Creates the span exporter for aTracingConfig(seeOtlpExporters.factory()).Options ofSpans.withSpan(java.lang.String, codes.grow.packages.skywalking.tracing.ThrowingSupplier<T, E>): attributes, kind, links, tracer, parent context.Builder forSpanOptions.Span helpers on top of the OpenTelemetry API.ThrowingRunnable<E extends Throwable>A runnable that may throw.ThrowingSupplier<T,E extends Throwable> A supplier that may throw.Tracing of plain functions:Traced.run(String, Callable)and theTraced.Methodannotation honoured byTracedProxy.Marks an interface method (or its implementation) to run in a span when called through aTracedProxy.Wraps aHttpClient: every request runs in a client span and carries the propagation headers.Proxy-based interceptor that runs methods annotated withTraced.Method(on the interface or on the implementation) in a span.Sets up the OpenTelemetry SDK from aTracingConfig.Immutable tracing setup used byTracing.initWith(codes.grow.packages.skywalking.tracing.TracingConfig, codes.grow.packages.skywalking.tracing.SpanExporterFactory).Span batch processor settings.Builder forTracingConfig.Export body compression.Export protocol.Sampler (OpenTelemetryOTEL_TRACES_SAMPLERnames).Jakarta Servlet filter that continues the caller's trace (W3C/B3 headers per the configured propagators) and records one server span per request (Servlet API is aprovideddependency).Running tracing setup returned byTracing.initWith(codes.grow.packages.skywalking.tracing.TracingConfig, codes.grow.packages.skywalking.tracing.SpanExporterFactory).OkHttp interceptor (OkHttp is an optional dependency) that runs each call in a client span and adds the propagation headers.