Skip to content

VitreousTelemetry class

Namespace: Vitreous
Assembly: Vitreous.dll

The names of the ActivitySource and Meter that Vitreous reports dispatches to. Subscribe to them to see commands, queries, streams and notifications in OpenTelemetry:

builder.Services.AddOpenTelemetry()
    .WithTracing(t => t.AddSource(VitreousTelemetry.ActivitySourceName))
    .WithMetrics(m => m.AddMeter(VitreousTelemetry.MeterName));
public static class VitreousTelemetry

object ← VitreousTelemetry

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Nothing is recorded until a listener subscribes. With no listener, a dispatch takes the same path, and allocates the same, as it would with telemetry compiled out.

The name of the ActivitySource that dispatch spans are started from: “Vitreous”.

public const string ActivitySourceName = "Vitreous"

string

The name of the Meter that dispatch metrics are recorded on: “Vitreous”.

public const string MeterName = "Vitreous"

string