Skip to content

tenantSegments

tenantSegments(context, options, missing): (string | undefined)[]

Defined in: packages/pipeline/src/helpers/tenant-partition.ts:42

The tenant segment of a partitioned key: [context.tenantId], or [] when includeTenant is false.

IPipelineContext

TenantPartitionOptions

(requestName, dimension, remedy) => Error

The package’s partition error, raised with the dimension 'tenant' when the tenant is required and absent.

(string | undefined)[]

What missing builds, when a required tenant is absent.

joinKeySegments([
...tenantSegments(context, options, MissingRateLimitPartitionError),
caller,
context.requestName,
]);