Sets the tags in the given OpenTelemetry context. If OI tracer is used in spans created during this active context, the tags will be added to the span as an attribute.
The context to set the tags on.
The tags to set on the context.
The context
context.with( setTags(context.active(), ["tag1", "tag2"]), () => { // Spans created here will have tags attribute }); Copy
context.with( setTags(context.active(), ["tag1", "tag2"]), () => { // Spans created here will have tags attribute });
Sets the tags in the given OpenTelemetry context. If OI tracer is used in spans created during this active context, the tags will be added to the span as an attribute.