Arize Phoenix TS
    Preparing search index...
    • 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.

      Parameters

      • context: Context

        The context to set the tags on.

      • tags: Tags

        The tags to set on the context.

      Returns Context

      The context

      context.with(
      setTags(context.active(), ["tag1", "tag2"]),
      () => {
      // Spans created here will have tags attribute
      }
      );