Interface ITelemetryTrace
A telemetry trace where metadata and exceptions can be added. The trace is ended when this instance is disposed.
public interface ITelemetryTrace : IDisposable
Methods
AddException(Exception, bool)
Add exception to telemetry trace.
void AddException(Exception exception, bool fatal = true)
Parameters
AddMetadata(string, object)
Add metadata to telemetry trace.
void AddMetadata(string key, object value)
Parameters
RecordTelemetryContext(MessageEnvelope)
Record the trace context in the MessageEnvelope metadata to support linking with downstream services.
void RecordTelemetryContext(MessageEnvelope envelope)
Parameters
envelope
MessageEnvelope