• Creates a IDistributedTraceContext from an optional telemetryTrace

    Parameters

    • OptionaltelemetryTrace: ITelemetryTrace

      The telemetryTrace instance that is being wrapped

    • OptionalparentCtx: IDistributedTraceContext

      An optional parent distributed trace instance, almost always undefined as this scenario is only used in the case of multiple property handlers.

    Returns IDistributedTraceContext

    A new IDistributedTraceContext instance that is backed by the telemetryTrace or temporary object