Skip to content

@cloudflare/workers-utils@0.31.2

Choose a tag to compare

@workers-devprod workers-devprod released this 07 Aug 10:49
b0aea76

Patch Changes

  • #15013 8cf78c8 Thanks @dario-piotrowicz! - Update undici from 7.28.0 to 7.29.0

  • #15011 6946da1 Thanks @LeSingh1! - Validate observability.logs.head_sampling_rate and observability.traces.head_sampling_rate are between 0 and 1

    The 0–1 range check was only applied to the top level observability.head_sampling_rate. The two nested fields were type-checked as numbers but never bounds-checked, so a value such as 10 (a common mix-up with a percentage) was accepted locally and sent to the API.

    {
      "observability": {
        "logs": { "enabled": true, "head_sampling_rate": 10 }
      }
    }

    All three fields now report must be a value between 0 and 1. consistently.