Loading
Go: Update module github.com/getsentry/sentry-go to v0.48.0
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| github.com/getsentry/sentry-go | require | minor | v0.45.0 -> v0.48.0 |
⚠️ WarningSome dependencies could not be looked up. Check the Dependency Dashboard for more information.
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
getsentry/sentry-go (github.com/getsentry/sentry-go)
v0.48.0: 0.48.0
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
c802283to4013fc6by @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
v0.47.0: 0.47.0
Breaking Changes 🛠️
- Fix
transaction_infosource getting set incorrectly across HTTP middleware integrations (http, fasthttp, fiber). Users should now expect traces to properly get grouped with their parameterized path. Transactions in affected integrations may regroup after upgrading. by @giortzisg in #1325 - remove deprecated
otel.NewSentrySpanProcessor. Users should now use thesentryotlp.NewTraceExporterinstead by @giortzisg in #1307// Before sentry.Init(sentry.ClientOptions{Dsn: dsn, EnableTracing: true, TracesSampleRate: 1.0}) tp := sdktrace.NewTracerProvider( sdktrace.WithSpanProcessor(sentryotel.NewSentrySpanProcessor()), ) otel.SetTextMapPropagator(sentryotel.NewSentryPropagator()) otel.SetTracerProvider(tp) // After: sentry.Init(sentry.ClientOptions{ Dsn: dsn, EnableTracing: true, TracesSampleRate: 1.0, Integrations: func(i []sentry.Integration) []sentry.Integration { return append(i, sentryotel.NewOtelIntegration()) }, }) exporter, _ := sentryotlp.NewTraceExporter(ctx, dsn) tp := sdktrace.NewTracerProvider(sdktrace.WithBatcher(exporter)) otel.SetTracerProvider(tp) - Enable logs by default to skip double allow behavior. Enabling logs now happens once when setting up either
sentry.NewLoggeror any supported integration. Also the EnableLogs flag changes to DisableLogs for a global override switch by @giortzisg in #1306 - Remove the
ContextifyFramesintegration. The recommended way to add source context is SCM by @giortzisg in #1302
New Features ✨
- Add fiber v3 integration by @giortzisg in #1324
- Bump fasthttp from 1.51.0 to 1.71.0 by @giortzisg in #1324
- Add sentrysql SQL tracing integration by @giortzisg in #1305
- Supports multiple integration paths depending on how your app opens database connections:
sentrysql.Open(...),sentrysql.OpenDB(...), and wrapped drivers/connectors for custom setups. - Database metadata is not inferred in every setup. If the database name is not discoverable automatically, pass
sentrysql.WithDatabaseName(...)so spans are populated correctly. - Example:
// Simple driver-based setup db, err := sentrysql.Open("sqlite", ":memory:", sentrysql.WithDatabaseSystem(sentrysql.SystemSQLite), sentrysql.WithDatabaseName("main"), ) - Supports multiple integration paths depending on how your app opens database connections:
Internal Changes 🔧
Deps
- Sync go.work by @giortzisg in #1326
- Bump github.com/stretchr/testify from 1.8.4 to 1.11.1 by @giortzisg in #1326
- Bump github.com/google/go-cmp from 0.5.9 to 0.7.0 by @giortzisg in #1326
- Bump getsentry/github-workflows from
71588ddtoc802283by @dependabot in #1314 - Bump actions/create-github-app-token from 3.0.0 to 3.2.0 by @dependabot in #1316
- Bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot in #1313
- Bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.26.2 to 2.26.6 by @dependabot in #1317
- Bump getsentry/craft from 2.26.2 to 2.26.6 by @dependabot in #1318
- Bump golangci/golangci-lint-action from 9.2.0 to 9.2.1 by @dependabot in #1315
- Bump github.com/gofiber/fiber/v2 from 2.52.12 to 2.52.13 in /fiber by @dependabot in #1300
- Bump github.com/gofiber/fiber/v2 from 2.52.12 to 2.52.13 in /crosstest by @dependabot in #1301
- Bump getsentry/craft from 2.25.2 to 2.26.2 by @dependabot in #1293
- Bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.25.2 to 2.26.2 by @dependabot in #1294
Other
- (otel) Remove unused semconv helpers by @giortzisg in #1321
- Update bump-version script to also bump crosstest by @giortzisg in #1327
v0.46.2: 0.46.2
Bug Fixes 🐛
- Add attachments to new event path by @giortzisg in #1295
v0.46.1: 0.46.1
Bug Fixes 🐛
- Correctly capture request body for fasthttp and fiber by @giortzisg in #1284
- (http) Avoid async transport shutdown panics by @giortzisg in #1288
- (httpclient) Clone request before adding trace headers by @giortzisg in #1290
- (scope) Use scoped client for request PII by @giortzisg in #1289
- Safe concurrent access for span and scope by @giortzisg in #1285
v0.46.0: 0.46.0
Breaking Changes 🛠️
- Remove SetExtra by @giortzisg in #1274
- Update compatibility policy to align with Go, supporting only the last two major Go versions by @giortzisg in #1264
- Drop support for Go 1.24 by @giortzisg in #1264
New Features ✨
- Add internal_sdk_error client report on serialization fail by @giortzisg in #1273
- Add grpc integration support by @ribice in #938
- Re-enable Telemetry Processor by default. To disable the behavior use the
DisableTelemetryBufferflag by @giortzisg in #1254 - Simplify client DSN storage to
internal/protocol.Dsnand make it safe to access by @giortzisg in #1254
Internal Changes 🔧
Deps
- Bump github.com/labstack/echo/v5 from 5.0.0 to 5.0.3 in /echo by @dependabot in #1253
- Bump github.com/labstack/echo/v5 from 5.0.0 to 5.0.3 in /crosstest by @dependabot in #1272
- Bump golangci-lint action from 2.1.1 to 2.11.4 by @giortzisg in #1265
- Bump go.opentelemetry.io/otel/sdk from 1.40.0 to 1.43.0 in /otel by @dependabot in #1256
- Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp from 1.40.0 to 1.43.0 in /otel/otlp by @dependabot in #1255
Other
- Improve ci by @giortzisg in #1271
- Add crosstest package by @giortzisg in #1269
- Add sentrytest package by @giortzisg in #1267
v0.45.1: 0.45.1
Bug Fixes 🐛
- Add missing TracesSampler fields for SamplingContext by @giortzisg in #1259
Configuration
- If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.