OpenTelemetry SDK
    Preparing search index...

    Function isAnyValue

    • Returns true iff the given value is a supported AnyValue per https://opentelemetry.io/docs/specs/otel/common/#anyvalue

      • Primitives/scalars: string, boolean, number (Note that this excludes BigInt and Symbol)
      • Byte arrays (Uint8Array, Buffer)
      • Arrays of AnyValue (heterogeneous arrays allowed)
      • Maps from string to AnyValue (nested objects)
      • Empty values (null)

      Notes:

      • undefined is not considered an AnyValue.

      Parameters

      • val: unknown

      Returns boolean

      true if the value is a valid AnyValue, false otherwise