Class TelemetrySequenceControlledByCallerAttribute
- Namespace
- DotCompute.Abstractions.RingKernels
- Assembly
- DotCompute.Abstractions.dll
Indicates that telemetry call sequencing is controlled by the caller, suppressing DC015, DC016, DC017 diagnostics for this method.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class TelemetrySequenceControlledByCallerAttribute : Attribute
- Inheritance
-
TelemetrySequenceControlledByCallerAttribute
- Inherited Members
Remarks
Apply this attribute to wrapper methods that delegate Ring Kernel operations where the caller is responsible for proper telemetry initialization and sequencing.
Example usage:
[TelemetrySequenceControlledByCaller(Message = "Telemetry enabled by container initialization")]
public async Task<RingKernelTelemetry> GetMetricsAsync()
{
// DC015 would normally fire here, but is suppressed by the attribute
return await _runtime.GetTelemetryAsync();
}
This attribute can be applied to:
- Methods that wrap Ring Kernel telemetry operations
- Classes where all methods delegate to caller-controlled sequences
Properties
Message
Gets or sets an optional message explaining who controls the telemetry sequence.
public string? Message { get; set; }
Property Value
- string
A descriptive message for documentation purposes, such as "Telemetry enabled by container initialization" or "Caller ensures proper sequencing".