Set mesh.* attributes on any span-like object in a single call.
Iterates over the provided attrs object and calls setAttribute for each
key that is defined (not undefined). Keys mapped to undefined are
silently skipped — this avoids setting literal "undefined" strings as
attribute values.
Works with both the lightweight SpanContext tracer and the full OTel
Span type from @opentelemetry/api.
Set
mesh.*attributes on any span-like object in a single call.Iterates over the provided
attrsobject and callssetAttributefor each key that is defined (notundefined). Keys mapped toundefinedare silently skipped — this avoids setting literal"undefined"strings as attribute values.Works with both the lightweight SpanContext tracer and the full OTel
Spantype from@opentelemetry/api.