lens.span_utilities
lens.span_utilities
Utilities for emitting spans from caller-supplied timestamps.
Module Contents
Functions
Data
API
Emit a completed span for an interval in Unix-epoch seconds.
Unless context is supplied, use the context active at this call, not the context that was active during the interval. Pass Context() for a root span. The emitted span is never made current.
Pass None for the default tracer. A disabled group returns None before validation. Otherwise return the completed span.
Inverted timestamps always set the end to the start and warn about possible clock skew. The span records inverted.skew=True, the original timestamps, and the inversion amount. Parent context and caller attributes are retained. Timestamps must be finite. There is no inversion tolerance or rejection threshold.
Return process creation time in Unix-epoch seconds from Linux /proc data.