Orleans.Lattice.Api.Telemetry
This page documents Orleans.Lattice.Api.Abstractions 10.5.0, in the documentation for Orleans.Lattice 10.5.0 (release line 10.5), built 2026-12-05. It is also published as markdown, with every table and list, at orleans-lattice-api-telemetry.md, and llms.txt lists every page.
Part of Public API.
Implemented by Orleans.Lattice.Api.Telemetry and exposed remotely by Orleans.Lattice.Api.Telemetry.Grpc. 23 public types.
| Type | Kind | Summary |
|---|---|---|
ILatticeTelemetry |
interface | Transport-agnostic telemetry facade: the read-only time-series surface over the cluster's metrics backend. |
ApiTelemetryTypeAliases |
static class | Centralized Orleans serialization alias constants for the telemetry control-API surface (the transport-agnostic contract in Orleans.Lattice.Api.Abstractions and the sibling gRPC / MCP bindings that reuse this registry). |
TelemetryBackendException |
sealed class (exception) | Thrown when the metrics backend could not answer a curated query: it was unreachable, timed out, returned a non-success status, or returned a payload that could not be read. |
TelemetryBoundsViolation |
enum | The single reason a requested time range failed a catalogue entry's declared bounds, as reported by Validate(TelemetryTimeRange, DateTimeOffset). |
TelemetryDataPoint |
readonly record struct | One (timestamp, value) sample of a returned time series. |
TelemetryInstrumentReference |
readonly record struct | A reference from a curated named query to one metric instrument it reads, carrying the instrument's own declared unit and measurement semantic. |
TelemetryLabel |
readonly record struct | One label on a returned time series: a name and its value, for example tree / t/acme/orders or tenant / acme. |
TelemetryMeasurementSemantic |
enum | What a metric instrument (or a named query built over one) actually measures, as distinct from what its name or a panel title implies. |
TelemetryQueryBounds |
readonly record struct | The bounds a curated named query declares for the caller-supplied parameters it accepts: the permitted resolution steps, the longest window, how far back a window may reach, and the sample-point budget. |
TelemetryQueryBoundsException |
sealed class (exception) | Thrown when a telemetry query request supplies a window that violates the bounds its catalogue entry declares. |
TelemetryQueryCatalog |
sealed record | The versioned set of curated named queries a caller may select from. |
TelemetryQueryDefinition |
sealed record | The server-side authoring shape of one curated named query: its client-facing Descriptor plus the query-language template that actually evaluates it. |
TelemetryQueryDescriptor |
sealed record | One entry in the curated named-query catalogue: everything a client needs to render and parameterise a panel, and nothing that lets it author a query. |
TelemetryQueryKind |
enum | Whether a curated named query is evaluated at a single instant or across a time range. |
TelemetryQueryNotFoundException |
sealed class (exception) | Thrown when a telemetry query is requested by an id that the caller's catalogue does not contain. |
TelemetryQueryParameters |
enum | The closed set of bounded parameters a curated named query may accept, declared per catalogue entry. |
TelemetryQueryRequest |
sealed record | A request to evaluate one curated named query: the query's catalogue id plus the bounded parameters that entry declares. |
TelemetryQueryResponse |
sealed record | The result of evaluating one curated named query: the series the backend returned, the shape they take, the window actually evaluated, and - always - the tenant scope the facade pinned. |
TelemetryResultKind |
enum | The shape of a query result, projected from the metrics backend's own result type into a closed, transport-neutral enum so a binding never has to interpret a free-form backend string. |
TelemetryTenantScope |
readonly record struct | The tenant scope a telemetry query was actually evaluated under, reported on every response. |
TelemetryTenantVisibility |
enum | The tenant visibility a telemetry query is evaluated under. |
TelemetryTimeRange |
readonly record struct | The evaluation window of a telemetry query: a start instant, an end instant, and a resolution step. |
TelemetryTimeSeries |
sealed record | One time series in a query result: its label set and its samples. |
ILatticeTelemetry
Source (line 43).
public interface ILatticeTelemetry
Task<TelemetryQueryCatalog> GetCatalogAsync(CancellationToken cancellationToken = default)Task<TelemetryQueryResponse> QueryAsync(TelemetryQueryRequest request, CancellationToken cancellationToken = default)
ApiTelemetryTypeAliases
Source (line 24).
public static class ApiTelemetryTypeAliases
public const string AliasPrefixpublic const string TelemetryQueryCatalogpublic const string TelemetryQueryDescriptorpublic const string TelemetryQueryDefinitionpublic const string TelemetryQueryBoundspublic const string TelemetryQueryParameterspublic const string TelemetryQueryKindpublic const string TelemetryInstrumentReferencepublic const string TelemetryMeasurementSemanticpublic const string TelemetryQueryRequestpublic const string TelemetryQueryResponsepublic const string TelemetryTimeRangepublic const string TelemetryTimeSeriespublic const string TelemetryDataPointpublic const string TelemetryLabelpublic const string TelemetryTenantScopepublic const string TelemetryTenantVisibilitypublic const string TelemetryResultKindpublic const string TelemetryBoundsViolation
TelemetryBackendException
Source (line 34).
public sealed class TelemetryBackendException : Exception
public TelemetryBackendException(string queryId, string message)public TelemetryBackendException(string queryId, string message, Exception innerException)public string QueryId { get; }
TelemetryBoundsViolation
Source (line 13).
public enum TelemetryBoundsViolation
NoneRangeNotAscendingStepBelowMinimumStepAboveMaximumRangeTooLongLookbackTooOldTooManyPoints
TelemetryDataPoint
Source (line 20).
public readonly record struct TelemetryDataPoint
public TelemetryDataPoint(DateTimeOffset timestamp, double value)public DateTimeOffset Timestamp { get; init; }public double Value { get; init; }public bool IsFinite
TelemetryInstrumentReference
Source (line 19).
public readonly record struct TelemetryInstrumentReference
public TelemetryInstrumentReference(string name, string meter, string unit, TelemetryMeasurementSemantic semantic)public string Name { get; init; }public string Meter { get; init; }public string Unit { get; init; }public TelemetryMeasurementSemantic Semantic { get; init; }
TelemetryLabel
Source (line 13).
public readonly record struct TelemetryLabel
public TelemetryLabel(string name, string value)public string Name { get; init; }public string Value { get; init; }
TelemetryMeasurementSemantic
Source (line 20).
public enum TelemetryMeasurementSemantic
UnspecifiedPerOperationPerRecordPerBatchDurationLevelRatio
TelemetryQueryBounds
Source (line 27).
public readonly record struct TelemetryQueryBounds
public TimeSpan MinStep { get; init; }public TimeSpan MaxStep { get; init; }public TimeSpan DefaultStep { get; init; }public TimeSpan MaxRange { get; init; }public TimeSpan MaxLookback { get; init; }public int MaxPoints { get; init; }public static TelemetryQueryBounds Unboundedpublic bool IsUnboundedpublic TimeSpan EffectiveStep(TimeSpan requested)public TelemetryBoundsViolation Validate(TelemetryTimeRange range, DateTimeOffset now)
TelemetryQueryBoundsException
Source (line 14).
public sealed class TelemetryQueryBoundsException : Exception
public TelemetryQueryBoundsException(string queryId, TelemetryBoundsViolation violation)public TelemetryQueryBoundsException(string queryId, TelemetryBoundsViolation violation, string message)public string QueryId { get; }public TelemetryBoundsViolation Violation { get; }
TelemetryQueryCatalog
Source (line 32).
public sealed record TelemetryQueryCatalog
public required int Version { get; init; }public required IReadOnlyList<TelemetryQueryDescriptor> Queries { get; init; }public static TelemetryQueryCatalog Emptypublic int Countpublic bool TryGetQuery(string queryId, [NotNullWhen(true)] out TelemetryQueryDescriptor? descriptor)public bool Contains(string queryId)
TelemetryQueryDefinition
Source (line 30).
public sealed record TelemetryQueryDefinition
public required TelemetryQueryDescriptor Descriptor { get; init; }public required string QueryTemplate { get; init; }public string QueryId
TelemetryQueryDescriptor
Source (line 36).
public sealed record TelemetryQueryDescriptor
public required string QueryId { get; init; }public required string Title { get; init; }public required string Description { get; init; }public required string Unit { get; init; }public TelemetryQueryKind Kind { get; init; }public TelemetryMeasurementSemantic Semantic { get; init; }public TelemetryQueryParameters Parameters { get; init; }public TelemetryQueryBounds Bounds { get; init; }public required IReadOnlyList<TelemetryInstrumentReference> Instruments { get; init; }public bool Accepts(TelemetryQueryParameters parameter)public bool ReadsInstrument(string instrumentName)
TelemetryQueryKind
Source (line 11).
public enum TelemetryQueryKind
InstantRange
TelemetryQueryNotFoundException
Source (line 16).
public sealed class TelemetryQueryNotFoundException : Exception
public TelemetryQueryNotFoundException(string queryId)public TelemetryQueryNotFoundException(string queryId, string message)public string QueryId { get; }
TelemetryQueryParameters
Source (line 30).
public enum TelemetryQueryParameters
NoneTimeRangeStepTreeFilter
TelemetryQueryRequest
Source (line 38).
public sealed record TelemetryQueryRequest
public required string QueryId { get; init; }public TelemetryTimeRange Range { get; init; }public string? TreeId { get; init; }public TelemetryTenantVisibility RequestedVisibility { get; init; }public string? RequestedTenantId { get; init; }
TelemetryQueryResponse
Source (line 32).
public sealed record TelemetryQueryResponse
public required string QueryId { get; init; }public required TelemetryTenantScope Scope { get; init; }public TelemetryResultKind ResultKind { get; init; }public required IReadOnlyList<TelemetryTimeSeries> Series { get; init; }public TelemetryTimeRange Range { get; init; }public int SeriesCountpublic bool IsEmpty
TelemetryResultKind
Source (line 10).
public enum TelemetryResultKind
EmptyVectorMatrixScalar
TelemetryTenantScope
Source (line 38).
public readonly record struct TelemetryTenantScope
public TelemetryTenantVisibility RequestedVisibility { get; init; }public TelemetryTenantVisibility EffectiveVisibility { get; init; }public string? TenantId { get; init; }public bool WasDowngradedpublic bool IsCrossTenantpublic static TelemetryTenantScope PinnedTo(string tenantId, TelemetryTenantVisibility requestedVisibility)public static TelemetryTenantScope AtRequestedTenant(string tenantId)public static TelemetryTenantScope AcrossAllTenants()
TelemetryTenantVisibility
Source (line 34).
public enum TelemetryTenantVisibility
ActiveTenantAllTenantsSingleTenant
TelemetryTimeRange
Source (line 27).
public readonly record struct TelemetryTimeRange
public DateTimeOffset StartUtc { get; init; }public DateTimeOffset EndUtc { get; init; }public TimeSpan Step { get; init; }public static TelemetryTimeRange At(DateTimeOffset instant)public static TelemetryTimeRange Between(DateTimeOffset startUtc, DateTimeOffset endUtc, TimeSpan step)public TimeSpan Durationpublic bool IsInstantpublic bool IsAscendingpublic long PointCount { get; }public TelemetryTimeRange WithStep(TimeSpan step)
TelemetryTimeSeries
Source (line 12).
public sealed record TelemetryTimeSeries
public required IReadOnlyList<TelemetryLabel> Labels { get; init; }public required IReadOnlyList<TelemetryDataPoint> Points { get; init; }public static TelemetryTimeSeries Emptypublic bool TryGetLabel(string name, out string? value)