Expand description
This crate defines a macro for annotating fn
and impl
in order to wrap functions
or methods with an OpenTelemetry
context from Python using the pyo3
crate.
Attribute Macrosยง
- pypropagate
- This macro prepends
pyo3_opentelemetry::attach_otel_context_from_python
to the function or method body, effectively ensuring that the wrapped function or method is executed in the currentOpenTelemetry
context from the Python side.