Using the decorator
Pass static metadata to@observe for values known at definition time:
Using context manager
Useusing_attributes to propagate metadata to all traces and spans within a block:
Attach arbitrary key-value pairs to traces and spans
@observe for values known at definition time:
using_attributes to propagate metadata to all traces and spans within a block: