Table of Contents

Class ApplicationInsightsTelemetry

Namespace
Common
Assembly
Lykke.Common.dll

Helper class for ApplicationInsights telemetry submission

public static class ApplicationInsightsTelemetry
Inheritance
ApplicationInsightsTelemetry
Inherited Members

Methods

MarkFailedOperation<T>(IOperationHolder<T>)

Marks telemetry operation as failed.

public static void MarkFailedOperation<T>(IOperationHolder<T> telemtryOperation) where T : OperationTelemetry

Parameters

telemtryOperation IOperationHolder<T>

Telemetry operation

Type Parameters

T

StartRequestOperation(string)

Initializes telemetry operation of RequestTelemetry type for future submission.

public static IOperationHolder<RequestTelemetry> StartRequestOperation(string name)

Parameters

name string

Operation name

Returns

IOperationHolder<RequestTelemetry>

Telemetry operation

StopOperation<T>(IOperationHolder<T>)

Submits telemetry operation that was created before.

public static void StopOperation<T>(IOperationHolder<T> telemtryOperation) where T : OperationTelemetry

Parameters

telemtryOperation IOperationHolder<T>

Telemetry operation

Type Parameters

T

TrackException(Exception)

Submits exception telemetry.

public static void TrackException(Exception exception)

Parameters

exception Exception

Exception

TrackMetric(string, double)

Submits telemetry of Metric type with rpovided name and value.

public static void TrackMetric(string name, double value)

Parameters

name string

Metric name

value double

Metric value