Skip to content

chore(deps): bump github.com/getsentry/sentry-go from 0.45.1 to 0.47.0 - #4900

Merged
dangra merged 6 commits into
masterfrom
dependabot/go_modules/github.com/getsentry/sentry-go-0.46.2
Jun 30, 2026
Merged

chore(deps): bump github.com/getsentry/sentry-go from 0.45.1 to 0.47.0#4900
dangra merged 6 commits into
masterfrom
dependabot/go_modules/github.com/getsentry/sentry-go-0.46.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 11, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/getsentry/sentry-go from 0.45.1 to 0.47.0.

Release notes

Sourced from github.com/getsentry/sentry-go's releases.

0.47.0

Breaking Changes 🛠

  • Fix transaction_info source 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 deprecatedotel.NewSentrySpanProcessor. Users should now use the sentryotlp.NewTraceExporter instead 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.NewLogger or any supported integration. Also the EnableLogs flag changes to DisableLogs for a global override switch by @​giortzisg in #1306
  • Remove the ContextifyFrames integration. 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"),
     )

Internal Changes 🔧

Deps

... (truncated)

Changelog

Sourced from github.com/getsentry/sentry-go's changelog.

0.47.0

Breaking Changes 🛠

  • Fix transaction_info source 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 deprecatedotel.NewSentrySpanProcessor. Users should now use the sentryotlp.NewTraceExporter instead 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.NewLogger or any supported integration. Also the EnableLogs flag changes to DisableLogs for a global override switch by @​giortzisg in #1306
  • Remove the ContextifyFrames integration. 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"),
     )

Internal Changes 🔧

Deps

... (truncated)

Commits

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels May 11, 2026
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/getsentry/sentry-go-0.46.2 branch 2 times, most recently from ce5c451 to dc98789 Compare May 12, 2026 15:54
@dangra

dangra commented Jun 30, 2026

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) from 0.45.1 to 0.47.0.
- [Release notes](https://github.com/getsentry/sentry-go/releases)
- [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-go@v0.45.1...v0.47.0)

---
updated-dependencies:
- dependency-name: github.com/getsentry/sentry-go
  dependency-version: 0.46.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): bump github.com/getsentry/sentry-go from 0.45.1 to 0.46.2 chore(deps): bump github.com/getsentry/sentry-go from 0.45.1 to 0.47.0 Jun 30, 2026
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/getsentry/sentry-go-0.46.2 branch from dc98789 to 44609e3 Compare June 30, 2026 11:32
@dangra

dangra commented Jun 30, 2026

Copy link
Copy Markdown
Member

@copilot fix the build error caused by bumping sentry depedency:

  Error: internal/sentry/sentry.go:58:9: scope.SetExtra undefined (type *"github.com/getsentry/sentry-go".Scope has no field or method SetExtra) (typecheck)

Copilot AI commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@copilot fix the build error caused by bumping sentry depedency:

  Error: internal/sentry/sentry.go:58:9: scope.SetExtra undefined (type *"github.com/getsentry/sentry-go".Scope has no field or m...

Fixed in commit 4dd81da.

internal/sentry/sentry.go now uses a v0.47-compatible event processor in WithExtra so the build no longer calls removed Scope.SetExtra, and go test ./... + go build ./... pass locally.

Copilot AI requested a review from dangra June 30, 2026 11:48
@dangra

dangra commented Jun 30, 2026

Copy link
Copy Markdown
Member

Fixed in commit 4dd81da.

@copilot I think the right way to fix it is using SetTag or SetAttribute as mentioned in SetExtra deprecation pull reuqest getsentry/sentry-go#1274

Copilot AI commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Fixed in commit 4dd81da.

@copilot I think the right way to fix it is using SetTag or SetAttribute as mentioned in SetExtra deprecation pull reuqest getsentry/sentry-go#1...

Fixed in commit ba01bcf. The WithExtra function now uses scope.SetAttributes() with type-appropriate attribute.* builders as recommended in the sentry-go PR #1274. All supported primitive types and slices are handled, with fallback to string conversion for other types.

@dangra
dangra merged commit 5b3fc2f into master Jun 30, 2026
23 of 24 checks passed
@dangra
dangra deleted the dependabot/go_modules/github.com/getsentry/sentry-go-0.46.2 branch June 30, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants