TenantryAspNetCoreTelemetry class
Namespace: Tenantry.AspNetCore · Package: Tenantry.AspNetCore · API reference
The names app.UseTenantry() records requests under, for OpenTelemetry's AddSource and AddMeter, and for log filters. The request's tenant itself goes under TenantTelemetry's names.
public static class TenantryAspNetCoreTelemetryFields
ActivitySourceName
The activity source of the Tenantry.ResolveTenant span: Tenantry.AspNetCore.
public const string ActivitySourceName = "Tenantry.AspNetCore"Returns: string
LogCategory
The category of the middleware's log messages: Tenantry.AspNetCore.
public const string LogCategory = "Tenantry.AspNetCore"Returns: string
MeterName
The meter of the tenantry.resolutions counter: Tenantry.AspNetCore.
public const string MeterName = "Tenantry.AspNetCore"Returns: string
TenantResolvedContext<TKey> class
The request whose tenant app.UseTenantry made current, passed to TenantResolutionOptions<TKey>.OnResolvedtenantry-aspnetcore-tenantresolutionoptions.md.
ITenantDistributedCache interface
The registered IDistributedCache, with every key under the current tenant's prefix, for code that uses IDistributedCache directly and keeps data per tenant.