OpenTelemetry SDK
    Preparing search index...

    Function sanitizeAttributes

    • Clean the given attributes to just those with "simple" attribute types. This remains for backwards compatibility with 2.x.

      Changes to previous behavior:

      • a default attribute count limit of 128 is applied
      • nullish values (except in arrays) are removed

      Parameters

      • inAttributes: unknown

      Returns Attributes

      Use cleanAttributes or cleanSimpleAttributes.