Table of Contents

Interface ITelemetryTrace

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

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

exception Exception
fatal bool

AddMetadata(string, object)

Add metadata to telemetry trace.

void AddMetadata(string key, object value)

Parameters

key string
value object

RecordTelemetryContext(MessageEnvelope)

Record the trace context in the MessageEnvelope metadata to support linking with downstream services.

void RecordTelemetryContext(MessageEnvelope envelope)

Parameters

envelope MessageEnvelope