ITraceApi provides an interface definition which is simular to the OpenTelemetry TraceAPI

Methods

  • Returns a Tracer, creating one if one with the given name and version if one has not already created.

    Parameters

    • name: string

      The name of the tracer or instrumentation library.

    • Optionalversion: string

      The version of the tracer or instrumentation library.

    • Optionaloptions: IOTelTracerOptions

      The options of the tracer or instrumentation library.

    Returns IOTelTracer

    Tracer A Tracer with the given name and version