Public API
This page documents Orleans.Lattice.Api.Telemetry.Grpc 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 api.md, and llms.txt lists every page.Orleans.Lattice.Api.Telemetry.Grpc publishes the remote half of the telemetry facade: LatticeTelemetryApiGrpcClient, the server options, the transport authorization seam and its two implementations, the identity and auth-scheme advertisement seams, the binding-owned wire records, and the registration extensions. The gRPC service, method definitions, marshallers and authorization interceptor are internal; they are described by behaviour in Architecture.
Query carries the shared contract's own TelemetryQueryRequest and TelemetryQueryResponse, and GetCatalog answers with its TelemetryQueryCatalog; those types are listed in the telemetry facade's public API. This package references only Orleans.Lattice.Api.Abstractions, not the facade implementation; see Reference closure.
Registration
| Method | What it registers |
|---|---|
AddLatticeTelemetryApiGrpc(this IServiceCollection services, Action<LatticeTelemetryApiGrpcOptions>? configure = null) |
The options, the default-deny ILatticeTelemetryApiAuthorizer (DenyTelemetryApiAuthorizer), the header-based ILatticeTelemetryApiCredentialBridge, the options-backed ILatticeTelemetryApiAuthSchemeSource, the authorization interceptor, and the service. Each seam is registered with TryAdd; the interceptor is appended to the gRPC pipeline on every call, so call it once. |
MapLatticeTelemetryApiGrpc(this IEndpointRouteBuilder endpoints) |
Maps the orleans.lattice.api.telemetry service routes. |
The host must also register ILatticeTelemetry, normally with AddLatticeTelemetryApi() from the facade package; see Hosting. Option values are documented in Configuration.
Client
LatticeTelemetryApiGrpcClient.Create(CallInvoker callInvoker, IServiceProvider serializerProvider) builds a client over a caller-supplied call invoker, resolving the per-message Orleans serializers from serializerProvider. It carries no transport policy of its own.
| Client method | RPC | Request | Response |
|---|---|---|---|
GetCatalogAsync(CancellationToken) |
GetCatalog |
TelemetryCatalogRequest (sent for you) |
TelemetryQueryCatalog |
QueryAsync(TelemetryQueryRequest, CancellationToken) |
Query |
TelemetryQueryRequest |
TelemetryQueryResponse |
GetAuthSchemeAsync(CancellationToken) |
GetAuthScheme |
AuthSchemeAdvertisementRequest (sent for you) |
AuthSchemeAdvertisement |
All three RPCs are unary. A failed call surfaces as an RpcException whose status follows the binding's status mapping.
Seams
| Seam | Default | Purpose |
|---|---|---|
ILatticeTelemetryApiAuthorizer |
DenyTelemetryApiAuthorizer |
Coarse admission for GetCatalog and Query, given a LatticeTelemetryApiAuthorizationContext. AllowAllTelemetryApiAuthorizer is the opt-in permissive implementation. |
ILatticeTelemetryApiCredentialBridge |
header-based (internal) | Lifts the caller credential from request metadata onto the ambient Lattice credential. |
ILatticeTelemetryApiAuthSchemeSource |
options-backed (internal) | Supplies the advertisement the unauthenticated GetAuthScheme RPC returns. |
Wire records
The binding owns four serializable records - TelemetryCatalogRequest, AuthSchemeAdvertisementRequest, AuthSchemeDescriptor and AuthSchemeAdvertisement - whose oitlg. wire aliases are the constants in GrpcTelemetryTypeAliases. See Wire aliases.
Related
Public declaration reference
The following inventory includes directly declared public members and overloads, enum values, and record positional members. Inherited framework members and compiler-generated record members are not additional package operations. Each source link identifies the declaration that defines its signature.
Orleans.Lattice.Api.Telemetry.Grpc.ILatticeTelemetryApiCredentialBridge
Source (line 37).
public interface ILatticeTelemetryApiCredentialBridge
LatticeCredential? Resolve(ServerCallContext context)
Orleans.Lattice.Api.Telemetry.Grpc.LatticeTelemetryApiGrpcClient
Source (line 45).
public sealed class LatticeTelemetryApiGrpcClient
public static LatticeTelemetryApiGrpcClient Create(CallInvoker callInvoker, IServiceProvider serializerProvider)public Task<TelemetryQueryCatalog> GetCatalogAsync(CancellationToken cancellationToken = default)public Task<TelemetryQueryResponse> QueryAsync(TelemetryQueryRequest request, CancellationToken cancellationToken = default)public Task<AuthSchemeAdvertisement> GetAuthSchemeAsync(CancellationToken cancellationToken = default)
Orleans.Lattice.Api.Telemetry.Grpc.LatticeTelemetryApiGrpcOptions
Source (line 7).
public sealed class LatticeTelemetryApiGrpcOptions
public bool RequireAuthorizationpublic string CredentialHeaderNamepublic string CredentialSchemepublic string ActiveTenantHeaderNamepublic IList<AuthSchemeDescriptor> AdvertisedAuthSchemes
Orleans.Lattice.Api.Telemetry.Grpc.LatticeTelemetryApiGrpcServiceCollectionExtensions
Source (line 41).
public static class LatticeTelemetryApiGrpcServiceCollectionExtensions
public static IServiceCollection AddLatticeTelemetryApiGrpc(this IServiceCollection services, Action<LatticeTelemetryApiGrpcOptions>? configure = null)public static IEndpointRouteBuilder MapLatticeTelemetryApiGrpc(this IEndpointRouteBuilder endpoints)
Orleans.Lattice.Api.Telemetry.Grpc.AuthSchemeAdvertisement
Source (line 12).
public sealed record AuthSchemeAdvertisement
public IReadOnlyList<AuthSchemeDescriptor> Schemes
Orleans.Lattice.Api.Telemetry.Grpc.AuthSchemeAdvertisementRequest
Source (line 11).
public sealed record AuthSchemeAdvertisementRequest
Orleans.Lattice.Api.Telemetry.Grpc.AuthSchemeDescriptor
Source (line 19).
public sealed record AuthSchemeDescriptor
public required string SchemeIdpublic string DisplayNamepublic IReadOnlyDictionary<string, string> Parameters
Orleans.Lattice.Api.Telemetry.Grpc.GrpcTelemetryTypeAliases
Source (line 27).
public static class GrpcTelemetryTypeAliases
public const string AliasPrefixpublic const string TelemetryCatalogRequestpublic const string AuthSchemeAdvertisementRequestpublic const string AuthSchemeDescriptorpublic const string AuthSchemeAdvertisement
Orleans.Lattice.Api.Telemetry.Grpc.TelemetryCatalogRequest
Source (line 18).
public sealed record TelemetryCatalogRequest
Orleans.Lattice.Api.Telemetry.Grpc.ILatticeTelemetryApiAuthSchemeSource
Source (line 15).
public interface ILatticeTelemetryApiAuthSchemeSource
AuthSchemeAdvertisement GetAdvertisement()
Orleans.Lattice.Api.Telemetry.Grpc.ILatticeTelemetryApiAuthorizer
Source (line 23).
public interface ILatticeTelemetryApiAuthorizer
Task<bool> IsAuthorizedAsync(LatticeTelemetryApiAuthorizationContext authorizationContext, CancellationToken cancellationToken)
Orleans.Lattice.Api.Telemetry.Grpc.DenyTelemetryApiAuthorizer
Source (line 47).
public sealed class DenyTelemetryApiAuthorizer : ILatticeTelemetryApiAuthorizer
public Task<bool> IsAuthorizedAsync(LatticeTelemetryApiAuthorizationContext authorizationContext, CancellationToken cancellationToken)
Orleans.Lattice.Api.Telemetry.Grpc.AllowAllTelemetryApiAuthorizer
Source (line 62).
public sealed class AllowAllTelemetryApiAuthorizer : ILatticeTelemetryApiAuthorizer
public Task<bool> IsAuthorizedAsync(LatticeTelemetryApiAuthorizationContext authorizationContext, CancellationToken cancellationToken)
Orleans.Lattice.Api.Telemetry.Grpc.LatticeTelemetryApiOperation
Source (line 11).
public enum LatticeTelemetryApiOperation
GetCatalog = 0Query = 1Unknown = 2
Orleans.Lattice.Api.Telemetry.Grpc.LatticeTelemetryApiAuthorizationContext
Source (line 35).
public readonly struct LatticeTelemetryApiAuthorizationContext
public LatticeTelemetryApiAuthorizationContext(ServerCallContext call, LatticeTelemetryApiOperation operation, string? targetId)public ServerCallContext Callpublic LatticeTelemetryApiOperation Operationpublic string? TargetId