TracingManager

Manager for setting up and managing OpenTelemetry tracing for Tracy.

This object provides utilities to:

Usage example:

TracingManager.setSdk(configureOpenTelemetrySdk(ConsoleExporterConfig()))
// ... your traced code ...
TracingManager.flushTraces()

See also

Properties

Link copied to clipboard

Policy that controls capturing inputs and outputs in spans. Disabled by default. Can be overridden programmatically at runtime.

Link copied to clipboard

Indicates whether tracing is enabled at runtime.

Link copied to clipboard

Provides the default io.opentelemetry.api.trace.Tracer instance for Tracy.

Functions

Link copied to clipboard
fun flushTraces(timeoutSeconds: Long = 5): CompletableResultCode?

Forces flushing of any pending spans to their respective exporters.

Link copied to clipboard
Link copied to clipboard
fun shutdownTracing(timeoutSeconds: Long = 5): CompletableResultCode?

Shuts down the OpenTelemetry SDK.

Link copied to clipboard

Enables the capture of sensitive content (inputs and outputs) for tracing spans.

Link copied to clipboard

Sets the capturing policy for handling sensitive content within spans.