A trace session that has been started.

Hierarchy

  • ITraceSession

Accessors

Methods

Accessors

Methods

  • Add a label to the trace session.

    Adds a key-value pair as a label to the trace span and metadata to the logged output. Both the name and value may be truncated in the trace according to hosting configuration. The value will be coerced to a string in tracing if it isn't one already.

    Type Parameters

    • T

    Parameters

    • name: string
    • value: T

    Returns void

  • End the trace session.

    It the session were opened with a Google Cloud tracer, this will also end the associated tracer span.

    Parameters

    • Optional info: TraceSessionInfo

      Additional information to modify the logged session info. This can be used to provide a different level at which to log the session (default is "debug"). All other fields are used to add metadata to the logged session.

    Returns void

Generated using TypeDoc