Skip to content

Clarify Bun README preload and build-plugin requirements #24555

Description

@nicohrubec

Update packages/bun/README.md with a separate instrumentation file and a bun --preload ./instrument.js app.js startup example.

Briefly explain that preload ensures initialization order, while sentryBunPlugin from @sentry/bun/plugin enables build-time instrumentation of supported bundled dependencies. Dependencies needing this instrumentation must be included in the bundle. Link to the full build example rather than duplicating it.

Preload already existed before v11; the build-plugin explanation is the key v11 addition.

Docs PR: getsentry/sentry-docs#19361

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions