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
configurationTelemetryConfigurationThe configuration.
Methods
Dispose()
Performs dispose.
public void Dispose()
GetMeter(string, string?)
Gets the meter.
public Meter GetMeter(string name, string? version = null)
Parameters
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
namestringThe name.
incrementlongThe increment.
tagsIDictionary<string, object>The tags.
RecordAcceleratorUtilization(string, double, long)
Performs record accelerator utilization.
public void RecordAcceleratorUtilization(string acceleratorType, double utilization, long memoryUsed)
Parameters
acceleratorTypestringThe accelerator type.
utilizationdoubleThe utilization.
memoryUsedlongThe memory used.
RecordEvent(string, IDictionary<string, object?>?)
Performs record event.
public void RecordEvent(string name, IDictionary<string, object?>? attributes = null)
Parameters
namestringThe name.
attributesIDictionary<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
generationintThe generation.
durationTimeSpanThe duration.
memoryBeforelongThe memory before.
memoryAfterlongThe memory after.
RecordHistogram(string, double, IDictionary<string, object?>?)
Performs record histogram.
public void RecordHistogram(string name, double value, IDictionary<string, object?>? tags = null)
Parameters
namestringThe name.
valuedoubleThe value.
tagsIDictionary<string, object>The tags.
RecordKernelExecution(string, TimeSpan, long)
Performs record kernel execution.
public void RecordKernelExecution(string kernelName, TimeSpan duration, long operationCount)
Parameters
kernelNamestringThe kernel name.
durationTimeSpanThe duration.
operationCountlongThe operation count.
RecordMemoryAllocation(long, string?)
Performs record memory allocation.
public void RecordMemoryAllocation(long bytes, string? allocationType = null)
Parameters
RecordMemoryTransfer(string, long, TimeSpan)
Performs record memory transfer.
public void RecordMemoryTransfer(string direction, long bytes, TimeSpan duration)
Parameters
RecordMetric(string, double, IDictionary<string, object?>?)
Performs record metric.
public void RecordMetric(string name, double value, IDictionary<string, object?>? tags = null)
Parameters
namestringThe name.
valuedoubleThe value.
tagsIDictionary<string, object>The tags.
StartActivity(string, ActivityKind)
Gets start activity.
public Activity? StartActivity(string name, ActivityKind kind = ActivityKind.Internal)
Parameters
namestringThe name.
kindActivityKindThe 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
operationNamestringThe operation name.
tagsIDictionary<string, object>The tags.
Returns
- IOperationTimer
The result of the operation.