Table of Contents

Interface ITelemetryProvider

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

Interface for telemetry providers to implement. The implementation must be registered with the dependency injection container as a service for ITelemetryProvider. The core library's ITelemetryFactory will forwarded trace starts to all registered ITelemetryProvider services.

public interface ITelemetryProvider

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

Returns

ITelemetryTrace

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