Beignet API reference
    Preparing search index...

    Type Alias FlagEvaluationContext

    Context supplied to flag evaluations, exposure recording, and tracking.

    type FlagEvaluationContext = {
        attributes?: Record<string, FlagAttributeValue>;
        parentSpanId?: string;
        privateAttributes?: readonly string[];
        requestId?: string;
        spanId?: string;
        subject?: FlagSubject;
        targetingKey: string;
        tenant?: FlagTenant;
        traceId?: string;
        traceparent?: string;
    }
    Index
    attributes?: Record<string, FlagAttributeValue>

    Provider-neutral targeting attributes. Keep private data out unless the selected provider and retention policy are approved for it.

    parentSpanId?: string
    privateAttributes?: readonly string[]

    Attribute keys that should be treated as private by providers and instrumentation.

    requestId?: string
    spanId?: string
    subject?: FlagSubject

    Actor, user, service, tenant, or account being targeted.

    targetingKey: string

    Stable key used by providers for rollout bucketing and targeting.

    tenant?: FlagTenant

    Tenant/account scope, when available.

    traceId?: string
    traceparent?: string