Tracing

Utility functions for use with Datadog trace package.

API Reference

xocto.tracing.set_global_tag(key: str, value: object) None[source]

Set a tag on the current root span.

These tags will be associated to the entire Datadog trace.

xocto.tracing.set_tag(key: str, value: object) None[source]

Set a tag on the current span.

xocto.tracing.set_tags(tags: dict[str | bytes, str]) None[source]

Set multiple tags on the current span.