Overview
respan_span_attributes() is a context manager that attaches Respan-specific attributes to all spans created within its scope. Use it to set customer_identifier, trace_group_identifier, and metadata without manually calling update_current_span() on each span.
Supported attributes
| Key | Type | Description |
|---|---|---|
customer_identifier | str | User or customer identifier for filtering in the dashboard. |
trace_group_identifier | str | Group related traces together. |
metadata | Dict | Custom key-value pairs for analytics. |
Example
with block (including process_data) will have the Respan attributes attached.