Class TelemetrySpanExtensions
Extends the TelemetrySpan class.
Namespace: Neon.Diagnostics
Assembly: Neon.Common.dll
Syntax
public static class TelemetrySpanExtensions
Methods
AddEvent(TelemetrySpan, string, Action<SpanAttributes>)
Adds an event with tags ti a TelemetrySpan.
Declaration
public static void AddEvent(this TelemetrySpan span, string name, Action<SpanAttributes> attributeSetter)
Parameters
Type | Name | Description |
---|---|---|
TelemetrySpan | span | The span. |
string | name | The event name. |
Action<SpanAttributes> | attributeSetter | The action that sets any tags. |
Remarks
note
This method does nothing when the span
is not recording.