Breaking Changes 🛠
- Remove issue creation from logging integrations by @giortzisg in #1340
New Features ✨
- Add
ClientOptions.DataCollectionfor granular control over data collected by automatic instrumentation, replacing the broadSendDefaultPIIswitch.DataCollectioncan independently configure automaticuser.*population, cookies, request/response headers, HTTP bodies, and query parameters. When configured, it is the source of truth andSendDefaultPIIis ignored. by @giortzisg in #1339- For backwards compatibility, clients that do not configure
DataCollectionkeep a best-effort mapping of the previousSendDefaultPIIbehavior. To opt in to the new defaults, pass an emptyDataCollectionand then restrict individual categories as needed.
sentry.Init(sentry.ClientOptions{ Dsn: "https://public@example.com/1", // Opt in to the new data collection defaults. Omitted fields use their // defaults: user info, cookies, headers, query params, and supported HTTP // bodies are collected, with sensitive values filtered. DataCollection: &sentry.DataCollection{}, })
- To opt in while disabling automatic user info and HTTP bodies, configure those fields explicitly:
sentry.Init(sentry.ClientOptions{ Dsn: "https://public@example.com/1", DataCollection: &sentry.DataCollection{ UserInfo: sentry.Set(false), HTTPBodies: []sentry.BodyType{}, }, })
- For backwards compatibility, clients that do not configure
- PushScope shorthand now returns the new scope reference by @DoctorJohn in #1335
Bug Fixes 🐛
- Fix fiber route name when using middlewares by @giortzisg in #1363
- Omit empty event id for standalone client reports by @giortzisg in #1362
- Preserve '%' literal in log messages by @giortzisg in #1358
- Unaligned 64-bit atomic panic on 32-bit platforms in telemetry buffers by @Kirill-INQ in #1355
- Isolate event processor across clones by @giortzisg in #1337
Internal Changes 🔧
Deps
- Bump fiber/v2 to 2.52.14 by @giortzisg in #1359
- Bump actions/checkout from 6.0.3 to 7.0.0 by @dependabot in #1349
- Bump golangci/golangci-lint-action from 9.2.1 to 9.3.0 by @dependabot in #1346
- Bump codecov/codecov-action from 6.0.0 to 7.0.0 by @dependabot in #1347
- Bump actions/setup-go from 6.4.0 to 6.5.0 by @dependabot in #1343
- Bump golang.org/x/crypto to 0.52.0 and golang/x/net to 0.55.0 by @giortzisg in #1341
- Bump getsentry/github-workflows/validate-pr from c802283cd9075b7a2b7a32655019c21c21676e34 to 4013fc6e1aeb1be1f9d3b4d232624f0ec1afa613 by @dependabot in #1344
Other
- Remove changelog-preview and codecov actions by @giortzisg in #1357
- Add govulncheck audit action by @giortzisg in #1342
- Limit changelog-preview secret access by @giortzisg in #1350
- Move limited buffer under utils by @giortzisg in #1338