Packages

@sentry/types

10.75.2 · 22 Sep 2026MIT13.1M / weekRepositoryHomepagenpmAtom feed

Your version

10.54.0

26 May 2026Where it was published

10.77.1 is the newest release of 10.x.

In short

17 new18 fixed36 internal

Release note

Important Changes

  • core: Support array attributes for spans, logs, and metrics

    Arrays of primitive values (string, number, boolean) are now accepted as attribute values. Arrays containing non-primitive elements will be dropped and won't show up in Sentry. Array attributes on logs and metrics were previously stringified and will now be sent as actual arrays instead. If you have custom rules that process attribute values in any beforeSend* callbacks (e.g., data scrubbing), you may need to update them to correctly handle array values.

    For instance, here's how you can update a beforeSendLog callback to handle arrays:

    beforeSendLog: log => {
      const attributes = log.attributes;
      Object.keys(attributes).forEach(key => {
        const value = attributes[key];
        if (typeof value === 'string') {
          attributes[key] = scrubData(value);
        }
        if (Array.isArray(value)) {
          attributes[key] = value.map(v => (typeof v === 'string' ? scrubData(v) : v));
        }
      });
      return log;
    };
  • browser: Add fetchStreamPerformanceIntegration for streamed response tracking

    A new integration that tracks the performance of streamed fetch responses. Use this to measure time-to-first-byte and streaming duration for APIs that return chunked/streamed data. This replaces the now deprecated trackFetchStreamPerformance option.

  • core: Add dataCollection client option

    Adds a new dataCollection client option for controlling what data the SDK collects and sends to Sentry. This provides a centralized way to configure data collection behavior across different SDK features. In the future, this option will be used for fine-granular data filtering, while the simple sendDefaultPii boolean option will be deprecated and removed in a future release.

  • hono: Add hono.request spans for internal .request() calls

    The Hono SDK now creates spans for internal .request() calls, providing better visibility into request handling within Hono applications.

Other Changes

  • core: Add data collection filtering utilities

  • core: Convert scope contexts to segment span attributes in span streaming

  • core: Emit sentry.sdk.integrations on streamed segment spans

  • core: HTTP server diagnostics channel utility

  • core: Migrate span streaming envelope to dataCollection

  • core: Migrate Supabase integration to dataCollection

  • core: Migrate trpc to dataCollection

  • deno: Instrument node:http on versions that support it

  • ember: Extract ember-specific logic into custom browserTracingIntegration

  • logs: Migrate log envelope user inference to dataCollection

  • nuxt: Allow custom configuration files paths in Nuxt module

  • replay: Update example worker script

  • serverless: Add server-only context span attributes via processSegmentSpan hooks

  • astro: Avoid injecting meta tags into <head> inside attribute values

  • astro: Use explicit ResponseInit when injecting meta tags in response

  • browser: Add a synthetic stack trace to DOMException with empty stack traces if attachStacktrace is true

  • browser: Fix internal frame detection in minified bundles

  • cloudflare: Avoid repeated flush lock wrapping

  • cloudflare: Skip SDK initialization for OPTIONS/HEAD requests

  • cloudflare, vercel-edge: Disable timer-based flush for serverless runtimes

  • core: Sanitize lone surrogates in log body and attributes

  • deno: Support Deno.serve instrumentation on Deno 2.8

  • hono: Preserve middleware handler metadata

  • hono: Use generic Hono type in Bun/Node

  • nextjs: Widen project option type to string | string

  • node: Improve http.client double-wrap message

  • node: Preserve CallbackManager handlers in LangChain instrumentation

  • react-router: Do not re-write origin on router state changes

  • replay: Set sentry.replay_id attribute on streamed spans

  • replay: Set replay_id on DSC after buffer-to-session conversion

  • solidstart: Use nitro module for build hooks to preserve preset hooks

Internal Changes

Work in this release was contributed by @abcang, @ahmadio, @delorge, @mdnanocom, and @victorgarciaesgi. Thank you for your contributions!