Uses of Class
com.tnsai.quality.observability.TraceContext
Packages that use TraceContext
Package
Description
Observability and telemetry integration using OpenTelemetry.
-
Uses of TraceContext in com.tnsai.quality.observability
Methods in com.tnsai.quality.observability that return TraceContextModifier and TypeMethodDescriptionTraceContext.createChildSpan(String operationName) Creates a child span for a nested operation.static TraceContextTraceContext.current()Gets the current trace context for this thread.OpenTelemetryTracer.fromCurrentContext(String operationName) Creates a TraceContext from the current OpenTelemetry context.static TraceContextTraceContext.fromTraceParent(String traceparent, String operationName) Parses a W3C traceparent header.static TraceContextTraceContext.fromUpstream(String traceId, String parentSpanId, String operationName) Creates a trace context from an existing trace ID (for distributed tracing).static TraceContextTraceContext.newTrace()Creates a new root trace context.static TraceContextCreates a new root trace context with an operation name.Methods in com.tnsai.quality.observability with parameters of type TraceContextModifier and TypeMethodDescriptionstatic voidTraceContext.setCurrent(TraceContext context) Sets the current trace context for this thread.OpenTelemetryTracer.startChildSpan(TraceContext parent, String operationName) Starts a child span under an existing TraceContext.io.opentelemetry.api.trace.SpanOpenTelemetryTracer.toOTelSpan(TraceContext ctx) Creates an OpenTelemetry span from a TraceContext.AgentLogger.withTrace(TraceContext trace) Sets the trace context for subsequent log calls.