[PR #997] [MERGED] fix(deps): update module github.com/getsentry/sentry-go/echo to v0.34.0 #1136

Closed
opened 2025-11-01 21:11:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/997
Author: @renovate[bot]
Created: 6/23/2025
Status: Merged
Merged: 6/23/2025
Merged by: @kolaente

Base: mainHead: renovate/github.com-getsentry-sentry-go-echo-0.x


📝 Commits (1)

  • d34a877 fix(deps): update module github.com/getsentry/sentry-go/echo to v0.34.0

📊 Changes

2 files changed (+3 additions, -1 deletions)

View changed files

📝 go.mod (+1 -1)
📝 go.sum (+2 -0)

📄 Description

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/getsentry/sentry-go/echo v0.33.0 -> v0.34.0 age adoption passing confidence

Release Notes

getsentry/sentry-go (github.com/getsentry/sentry-go/echo)

v0.34.0: 0.34.0

Compare Source

The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.34.0.

Breaking Changes
  • Logrus structured logging support replaces the sentrylogrus.Hook signature from a *Hook to an interface.
var hook *sentrylogrus.Hook
hook = sentrylogrus.New(
    // ... your setup
)

// should change the definition to 
var hook sentrylogrus.Hook
hook = sentrylogrus.New(
    // ... your setup
)
Features
ctx := context.Background()
handler := sentryslog.Option{
    EventLevel: []slog.Level{slog.LevelError, sentryslog.LevelFatal}, // Only Error and Fatal as events
    LogLevel:   []slog.Level{slog.LevelWarn, slog.LevelInfo},         // Only Warn and Info as logs
}.NewSentryHandler(ctx)
logger := slog.New(handler)
logger.Info("hello"))
logHook, _ := sentrylogrus.NewLogHook(
    []logrus.Level{logrus.InfoLevel, logrus.WarnLevel}, 
    sentry.ClientOptions{
        Dsn: "your-dsn",
        EnableLogs: true, // Required for log entries    
    })
defer logHook.Flush(5 * time.Secod)
logrus.RegisterExitHandler(func() {
    logHook.Flush(5 * time.Second)
})

logger := logrus.New()
logger.AddHook(logHook)
logger.Infof("hello")
  • Add support for flushing events with context using FlushWithContext(). (#​935)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

if !sentry.FlushWithContext(ctx) {
    // Handle timeout or cancellation
}
  • Add support for custom fingerprints in slog integration. (#​1039)
Deprecations
  • Slog structured logging support replaces Level option with EventLevel and LogLevel options, for specifying fine-grained levels for capturing events and logs.
handler := sentryslog.Option{
    EventLevel: []slog.Level{slog.LevelWarn, slog.LevelError, sentryslog.LevelFatal},
    LogLevel:   []slog.Level{slog.LevelDebug, slog.LevelInfo, slog.LevelWarn, slog.LevelError, sentryslog.LevelFatal},
}.NewSentryHandler(ctx)
  • Logrus structured logging support replaces New and NewFromClient functions to NewEventHook, NewEventHookFromClient, to match the newly added NewLogHook functions, and specify the hook type being created each time.
logHook, err := sentrylogrus.NewLogHook(
    []logrus.Level{logrus.InfoLevel},
    sentry.ClientOptions{})
eventHook, err := sentrylogrus.NewEventHook([]logrus.Level{
    logrus.ErrorLevel,
    logrus.FatalLevel,
    logrus.PanicLevel,
}, sentry.ClientOptions{})
Bug Fixes
  • Fix issue where ContinueTrace() would panic when sentry-trace header does not exist. (#​1026)
  • Fix incorrect log level signature in structured logging. (#​1034)
  • Remove sentry.origin attribute from Sentry logger to prevent confusion in spans. (#​1038)
  • Don't gate user information behind SendDefaultPII flag for logs. (#​1032)
Misc
  • Add more sensitive HTTP headers to the default list of headers that are scrubbed by default. (#​1008)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/997 **Author:** [@renovate[bot]](https://github.com/apps/renovate) **Created:** 6/23/2025 **Status:** ✅ Merged **Merged:** 6/23/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `renovate/github.com-getsentry-sentry-go-echo-0.x` --- ### 📝 Commits (1) - [`d34a877`](https://github.com/go-vikunja/vikunja/commit/d34a8774a52e2900b9f902d1e4baa16e09c4bec3) fix(deps): update module github.com/getsentry/sentry-go/echo to v0.34.0 ### 📊 Changes **2 files changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+1 -1) 📝 `go.sum` (+2 -0) </details> ### 📄 Description This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/getsentry/sentry-go/echo](https://redirect.github.com/getsentry/sentry-go) | `v0.33.0` -> `v0.34.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgetsentry%2fsentry-go%2fecho/v0.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgetsentry%2fsentry-go%2fecho/v0.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgetsentry%2fsentry-go%2fecho/v0.33.0/v0.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgetsentry%2fsentry-go%2fecho/v0.33.0/v0.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>getsentry/sentry-go (github.com/getsentry/sentry-go/echo)</summary> ### [`v0.34.0`](https://redirect.github.com/getsentry/sentry-go/releases/tag/v0.34.0): 0.34.0 [Compare Source](https://redirect.github.com/getsentry/sentry-go/compare/v0.33.0...v0.34.0) The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.34.0. ##### Breaking Changes - Logrus structured logging support replaces the `sentrylogrus.Hook` signature from a `*Hook` to an interface. ```go var hook *sentrylogrus.Hook hook = sentrylogrus.New( // ... your setup ) // should change the definition to var hook sentrylogrus.Hook hook = sentrylogrus.New( // ... your setup ) ``` ##### Features - Structured logging support for [slog](https://pkg.go.dev/log/slog). ([#&#8203;1033](https://redirect.github.com/getsentry/sentry-go/pull/1033)) ```go ctx := context.Background() handler := sentryslog.Option{ EventLevel: []slog.Level{slog.LevelError, sentryslog.LevelFatal}, // Only Error and Fatal as events LogLevel: []slog.Level{slog.LevelWarn, slog.LevelInfo}, // Only Warn and Info as logs }.NewSentryHandler(ctx) logger := slog.New(handler) logger.Info("hello")) ``` - Structured logging support for [logrus](https://redirect.github.com/sirupsen/logrus). ([#&#8203;1036](https://redirect.github.com/getsentry/sentry-go/pull/1036)) ```go logHook, _ := sentrylogrus.NewLogHook( []logrus.Level{logrus.InfoLevel, logrus.WarnLevel}, sentry.ClientOptions{ Dsn: "your-dsn", EnableLogs: true, // Required for log entries }) defer logHook.Flush(5 * time.Secod) logrus.RegisterExitHandler(func() { logHook.Flush(5 * time.Second) }) logger := logrus.New() logger.AddHook(logHook) logger.Infof("hello") ``` - Add support for flushing events with context using `FlushWithContext()`. ([#&#8203;935](https://redirect.github.com/getsentry/sentry-go/pull/935)) ```go ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() if !sentry.FlushWithContext(ctx) { // Handle timeout or cancellation } ``` - Add support for custom fingerprints in slog integration. ([#&#8203;1039](https://redirect.github.com/getsentry/sentry-go/pull/1039)) ##### Deprecations - Slog structured logging support replaces `Level` option with `EventLevel` and `LogLevel` options, for specifying fine-grained levels for capturing events and logs. ```go handler := sentryslog.Option{ EventLevel: []slog.Level{slog.LevelWarn, slog.LevelError, sentryslog.LevelFatal}, LogLevel: []slog.Level{slog.LevelDebug, slog.LevelInfo, slog.LevelWarn, slog.LevelError, sentryslog.LevelFatal}, }.NewSentryHandler(ctx) ``` - Logrus structured logging support replaces `New` and `NewFromClient` functions to `NewEventHook`, `NewEventHookFromClient`, to match the newly added `NewLogHook` functions, and specify the hook type being created each time. ```go logHook, err := sentrylogrus.NewLogHook( []logrus.Level{logrus.InfoLevel}, sentry.ClientOptions{}) eventHook, err := sentrylogrus.NewEventHook([]logrus.Level{ logrus.ErrorLevel, logrus.FatalLevel, logrus.PanicLevel, }, sentry.ClientOptions{}) ``` ##### Bug Fixes - Fix issue where `ContinueTrace()` would panic when `sentry-trace` header does not exist. ([#&#8203;1026](https://redirect.github.com/getsentry/sentry-go/pull/1026)) - Fix incorrect log level signature in structured logging. ([#&#8203;1034](https://redirect.github.com/getsentry/sentry-go/pull/1034)) - Remove `sentry.origin` attribute from Sentry logger to prevent confusion in spans. ([#&#8203;1038](https://redirect.github.com/getsentry/sentry-go/pull/1038)) - Don't gate user information behind `SendDefaultPII` flag for logs. ([#&#8203;1032](https://redirect.github.com/getsentry/sentry-go/pull/1032)) ##### Misc - Add more sensitive HTTP headers to the default list of headers that are scrubbed by default. ([#&#8203;1008](https://redirect.github.com/getsentry/sentry-go/pull/1008)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/go-vikunja/vikunja). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-01 21:11:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#1136