Table of Contents

Class UnifiedTelemetryProvider

Namespace
DotCompute.Core.Telemetry
Assembly
DotCompute.Core.dll

Unified telemetry provider implementation. This consolidates all telemetry functionality.

public sealed class UnifiedTelemetryProvider : ITelemetryProvider, IDisposable
Inheritance
UnifiedTelemetryProvider
Implements
Inherited Members
Extension Methods

Constructors

UnifiedTelemetryProvider(TelemetryConfiguration)

Initializes a new instance of the UnifiedTelemetryProvider class.

public UnifiedTelemetryProvider(TelemetryConfiguration configuration)

Parameters

configuration TelemetryConfiguration

The configuration.

Methods

Dispose()

Performs dispose.

public void Dispose()

GetMeter(string, string?)

Gets the meter.

public Meter GetMeter(string name, string? version = null)

Parameters

name string

The name.

version string

The version.

Returns

Meter

The meter.

IncrementCounter(string, long, IDictionary<string, object?>?)

Performs increment counter.

public void IncrementCounter(string name, long increment = 1, IDictionary<string, object?>? tags = null)

Parameters

name string

The name.

increment long

The increment.

tags IDictionary<string, object>

The tags.

RecordAcceleratorUtilization(string, double, long)

Performs record accelerator utilization.

public void RecordAcceleratorUtilization(string acceleratorType, double utilization, long memoryUsed)

Parameters

acceleratorType string

The accelerator type.

utilization double

The utilization.

memoryUsed long

The memory used.

RecordEvent(string, IDictionary<string, object?>?)

Performs record event.

public void RecordEvent(string name, IDictionary<string, object?>? attributes = null)

Parameters

name string

The name.

attributes IDictionary<string, object>

The attributes.

RecordGarbageCollection(int, TimeSpan, long, long)

Performs record garbage collection.

public void RecordGarbageCollection(int generation, TimeSpan duration, long memoryBefore, long memoryAfter)

Parameters

generation int

The generation.

duration TimeSpan

The duration.

memoryBefore long

The memory before.

memoryAfter long

The memory after.

RecordHistogram(string, double, IDictionary<string, object?>?)

Performs record histogram.

public void RecordHistogram(string name, double value, IDictionary<string, object?>? tags = null)

Parameters

name string

The name.

value double

The value.

tags IDictionary<string, object>

The tags.

RecordKernelExecution(string, TimeSpan, long)

Performs record kernel execution.

public void RecordKernelExecution(string kernelName, TimeSpan duration, long operationCount)

Parameters

kernelName string

The kernel name.

duration TimeSpan

The duration.

operationCount long

The operation count.

RecordMemoryAllocation(long, string?)

Performs record memory allocation.

public void RecordMemoryAllocation(long bytes, string? allocationType = null)

Parameters

bytes long

The bytes.

allocationType string

The allocation type.

RecordMemoryTransfer(string, long, TimeSpan)

Performs record memory transfer.

public void RecordMemoryTransfer(string direction, long bytes, TimeSpan duration)

Parameters

direction string

The direction.

bytes long

The bytes.

duration TimeSpan

The duration.

RecordMetric(string, double, IDictionary<string, object?>?)

Performs record metric.

public void RecordMetric(string name, double value, IDictionary<string, object?>? tags = null)

Parameters

name string

The name.

value double

The value.

tags IDictionary<string, object>

The tags.

StartActivity(string, ActivityKind)

Gets start activity.

public Activity? StartActivity(string name, ActivityKind kind = ActivityKind.Internal)

Parameters

name string

The name.

kind ActivityKind

The kind.

Returns

Activity

The result of the operation.

StartTimer(string, IDictionary<string, object?>?)

Gets start timer.

public IOperationTimer StartTimer(string operationName, IDictionary<string, object?>? tags = null)

Parameters

operationName string

The operation name.

tags IDictionary<string, object>

The tags.

Returns

IOperationTimer

The result of the operation.