Table of Contents

Interface ITelemetryFactory

Namespace
AWS.Messaging.Telemetry
Assembly
AWS.Messaging.dll

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

bool

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 string

The 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 string
envelope MessageEnvelope

Returns

ITelemetryTrace