Tracer
TracerProtocol #
Bases: Protocol
Protocol that defines the tracer interface for type checking.
NoOpSpan #
A no-op span that does nothing when tracing is disabled.
NoOpTracer #
A no-op tracer that returns no-op spans when tracing is disabled.
SpanContextManagerWrapper #
SpanContextManagerWrapper(
context_manager: Any,
session_id: str | None,
client_id: str | None = None,
email: str | None = None,
)
Wrapper for span context managers to add session_id on enter.
Source code in src/rapidata/rapidata_client/config/tracer.py
RapidataTracer #
Tracer implementation that updates when the configuration changes.
Source code in src/rapidata/rapidata_client/config/tracer.py
start_span #
Start a span, or return a no-op span if tracing is disabled.
Source code in src/rapidata/rapidata_client/config/tracer.py
start_as_current_span #
Start a span as current, or return a no-op span if tracing is disabled.
Source code in src/rapidata/rapidata_client/config/tracer.py
fail_current_span #
Mark the current span as errored.
get_system_attributes #
Gather system telemetry for traces.