Interface ITelemetryFactory
Service interface the AWS.Messaging library uses to start telemetry traces.
public interface ITelemetryFactory
Properties
IsTelemetryEnabled
Boolean indicating if telemetry is enabled.
bool IsTelemetryEnabled { get; }
Property Value
Methods
Trace(string)
Start a trace represented by the returned ITelemetryTrace. The trace will end when the ITelemetryTrace is disposed.
ITelemetryTrace Trace(string traceName)
Parameters
traceName
stringThe name of the trace.
Returns
- ITelemetryTrace
The state of the trace.
Trace(string, MessageEnvelope)
Start a trace represented by the returned ITelemetryTrace. The trace will end when the ITelemetryTrace is disposed. The MessageEnvelope is used to look for parent trace metadata to connect traces from publishers to subscribers.
ITelemetryTrace Trace(string traceName, MessageEnvelope envelope)
Parameters
traceName
stringenvelope
MessageEnvelope