Skip to content

fix(deps): update module github.com/getsentry/sentry-go to v0.44.1 - autoclosed#54

Closed
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/github.com-getsentry-sentry-go-0.x
Closed

fix(deps): update module github.com/getsentry/sentry-go to v0.44.1 - autoclosed#54
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/github.com-getsentry-sentry-go-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jan 2, 2025

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
github.com/getsentry/sentry-go v0.16.0v0.44.1 age confidence

Release Notes

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

v0.44.1: 0.44.1

Compare Source

[!NOTE]
v0.44.0 had to be released as v0.44.1 due to a technical issue.

New Features ✨
  • Add RemoveAttribute api on the scope. by @​giortzisg in #​1224
  • Deprecate Scope.SetExtra, Scope.SetExtras, and Scope.RemoveExtra in favor of Scope.SetAttributes and Scope.RemoveAttribute by @​giortzisg in #​1224
    • The recommended migration path is to use SetAttributes to attach values to logs and metrics. Note that attributes do not appear on error events; if you only capture errors, use SetTag or SetContext instead.
    • Before:
    scope.SetExtra("key.string", "str")
    scope.SetExtra("key.int", 42)
    • After (for error events) — use tags and contexts:
    scope.SetTag("key.string", "str")
    scope.SetContext("my_data", sentry.Context{"key.int": 42})
    • After (for logs and metrics) — use attributes:
    scope.SetAttributes(
        attribute.String("key.string", "str"),
        attribute.Int("key.int", 42),
    )
  • Add support for homogenous arrays by @​giortzisg in #​1203
  • Add support for client reports by @​giortzisg in #​1192
  • Add org id propagation in sentry_baggage by @​giortzisg in #​1210
  • Add OrgID and StrictTraceContinuation client options. by @​giortzisg in #​1210
  • Add the option to set attributes on the scope by @​giortzisg in #​1208
Bug Fixes 🐛
Internal Changes 🔧
Ai
Deps
Other

v0.44.0: 0.44.0

Compare Source

[!NOTE]
v0.44.0 had to be released as v0.44.1 due to a technical issue.

New Features ✨
  • Add RemoveAttribute api on the scope. by @​giortzisg in #​1224
  • Deprecate Scope.SetExtra, Scope.SetExtras, and Scope.RemoveExtra in favor of Scope.SetAttributes and Scope.RemoveAttribute by @​giortzisg in #​1224
    • The recommended migration path is to use SetAttributes to attach values to logs and metrics. Note that attributes do not appear on error events; if you only capture errors, use SetTag or SetContext instead.
    • Before:
    scope.SetExtra("key.string", "str")
    scope.SetExtra("key.int", 42)
    • After (for error events) — use tags and contexts:
    scope.SetTag("key.string", "str")
    scope.SetContext("my_data", sentry.Context{"key.int": 42})
    • After (for logs and metrics) — use attributes:
    scope.SetAttributes(
        attribute.String("key.string", "str"),
        attribute.Int("key.int", 42),
    )
  • Add support for homogenous arrays by @​giortzisg in #​1203
  • Add support for client reports by @​giortzisg in #​1192
  • Add org id propagation in sentry_baggage by @​giortzisg in #​1210
  • Add OrgID and StrictTraceContinuation client options. by @​giortzisg in #​1210
  • Add the option to set attributes on the scope by @​giortzisg in #​1208
Bug Fixes 🐛
Internal Changes 🔧
Ai
Deps
Other

v0.43.0: 0.43.0

Compare Source

Breaking Changes 🛠
  • Add support for go 1.26 by @​giortzisg in #​1193
    • bump minimum supported go version to 1.24
  • change type signature of attributes for Logs and Metrics. by @​giortzisg in #​1205
    • users are not supposed to modify Attributes directly on the Log/Metric itself, but this is still is a breaking change on the type.
  • Send uint64 overflowing attributes as numbers. by @​giortzisg in #​1198
    • The SDK was converting overflowing uint64 attributes to strings for slog and logrus integrations. To eliminate double types for these attributes, the SDK now sends the overflowing attribute as is, and lets the server handle the overflow appropriately.
    • It is expected that overflowing unsigned integers would now get dropped, instead of converted to strings.
New Features ✨
Bug Fixes 🐛
Internal Changes 🔧
Deps
Other

v0.42.0: 0.42.0

Compare Source

Breaking Changes 🛠
  • refactor Telemetry Processor to use TelemetryItem instead of ItemConvertible by @​giortzisg in #​1180
    • remove ToEnvelopeItem from single log items
    • rename TelemetryBuffer to Telemetry Processor to adhere to spec
    • remove unsed ToEnvelopeItem(dsn) from Event.
New Features ✨
  • Add metric support by @​aldy505 in #​1151
    • support for three metric methods (counter, gauge, distribution)
    • custom metric units
    • unexport batchlogger
Internal Changes 🔧
Release
Other

v0.41.0: 0.41.0

Compare Source

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

Features
  • Add HTTP client integration for distributed tracing via sentryhttpclient package (#​876)
    • Provides an http.RoundTripper implementation that automatically creates spans for outgoing HTTP requests
    • Supports trace propagation targets configuration via WithTracePropagationTargets option
    • Example usage:
      import sentryhttpclient "github.com/getsentry/sentry-go/httpclient"
      
      roundTripper := sentryhttpclient.NewSentryRoundTripper(nil)
      client := &http.Client{
          Transport: roundTripper,
      }
  • Add ClientOptions.PropagateTraceparent option to control W3C traceparent header propagation in outgoing HTTP requests (#​1161)
  • Add SpanID field to structured logs (#​1169)

v0.40.0: 0.40.0

Compare Source

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

Bug Fixes
  • Disable DisableTelemetryBuffer flag and noop Telemetry Buffer, to prevent a panic at runtime (#​1149).

v0.39.0: 0.39.0

Compare Source

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

Features
  • Drop events from the telemetry buffer when rate-limited or transport is full, allowing the buffer queue to empty itself under load (#​1138).
Bug Fixes
  • Fix scheduler's hasWork() method to check if buffers are ready to flush. The previous implementation was causing CPU spikes (#​1143).

v0.38.0: 0.38.0

Compare Source

Breaking Changes
Features
  • Introduce a new async envelope transport and telemetry buffer to prioritize and batch events (#​1094, #​1093, #​1107).

    • Advantages:
      • Prioritized, per-category buffers (errors, transactions, logs, check-ins) reduce starvation and improve resilience under load
      • Batching for high-volume logs (up to 100 items or 5s) cuts network overhead
      • Bounded memory with eviction policies
      • Improved flush behavior with context-aware flushing
  • Add ClientOptions.DisableTelemetryBuffer to opt out and fall back to the legacy transport layer (HTTPTransport / HTTPSyncTransport).

    err := sentry.Init(sentry.ClientOptions{
      Dsn: "__DSN__",
      DisableTelemetryBuffer: true, // fallback to legacy transport
    })
Notes
  • If a custom Transport is provided, the SDK automatically disables the telemetry buffer and uses the legacy transport for compatibility.

v0.37.0: 0.37.0

Compare Source

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

Breaking Changes
  • Behavioral change for the TraceIgnoreStatusCodes option. The option now defaults to ignoring 404 status codes (#​1122).
Features
  • Add sentry.origin attribute to structured logs to identify log origin for slog and logrus integrations (auto.log.slog, auto.log.logrus) (#​1121).
Bug Fixes
  • Fix slog event handler to use the initial context, ensuring events use the correct hub/span when the emission context lacks one (#​1133).
  • Improve exception chain processing by checking pointer values when tracking visited errors, avoiding instability for certain wrapped errors (#​1132).
Misc
  • Bump golang.org/x/net to v0.38.0 (#​1126).

v0.36.2: 0.36.2

Compare Source

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

Bug Fixes
  • Fix context propagation for logs to ensure logger instances correctly inherit span and hub information from their creation context (#​1118)
    • Logs now properly propagate trace context from the logger's original context, even when emitted in a different context
    • The logger will first check the emission context, then fall back to its creation context, and finally to the current hub

v0.36.1: 0.36.1

Compare Source

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

Bug Fixes
  • Prevent panic when converting error chains containing non-comparable error types by using a safe fallback for visited detection in exception conversion (#​1113)

v0.36.0: 0.36.0

Compare Source

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

Breaking Changes
  • Behavioral change for the MaxBreadcrumbs client option. Removed the hard limit of 100 breadcrumbs, allowing users to set a larger limit and also changed the default limit from 30 to 100 (#​1106))

  • The changes to error handling (#​1075) will affect issue grouping. It is expected that any wrapped and complex errors will be grouped under a new issue group.

Features
  • Add support for improved issue grouping with enhanced error chain handling (#​1075)

    The SDK now provides better handling of complex error scenarios, particularly when dealing with multiple related errors or error chains. This feature automatically detects and properly structures errors created with Go's errors.Join() function and other multi-error patterns.

    // Multiple errors are now properly grouped and displayed in Sentry
    err1 := errors.New("err1")
    err2 := errors.New("err2") 
    combinedErr := errors.Join(err1, err2)
    
    // When captured, these will be shown as related exceptions in Sentry
    sentry.CaptureException(combinedErr)
  • Add TraceIgnoreStatusCodes option to allow filtering of HTTP transactions based on status codes (#​1089)

    • Configure which HTTP status codes should not be traced by providing single codes or ranges
    • Example: TraceIgnoreStatusCodes: [][]int{{404}, {500, 599}} ignores 404 and server errors 500-599
Bug Fixes
  • Fix logs being incorrectly filtered by BeforeSend callback (#​1109)
    • Logs now bypass the processEvent method and are sent directly to the transport
    • This ensures logs are only filtered by BeforeSendLog, not by the error/message BeforeSend callback
Misc
  • Add support for Go 1.25 and drop support for Go 1.22 (#​1103)

v0.35.3: 0.35.3

Compare Source

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

Bug Fixes
  • Add missing rate limit categories (#​1082)

v0.35.2: 0.35.2

Compare Source

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

Bug Fixes
  • Fix OpenTelemetry spans being created as transactions instead of child spans (#​1073)
Misc
  • Add MockTransport to test clients for improved testing (#​1071)

v0.35.1: 0.35.1

Compare Source

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

Bug Fixes
  • Fix race conditions when accessing the scope during logging operations (#​1050)
  • Fix nil pointer dereference with malformed URLs when tracing is enabled in fasthttp and fiber integrations (#​1055)
Misc
  • Bump github.com/gofiber/fiber/v2 from 2.52.5 to 2.52.9 in /fiber (#​1067)

v0.35.0: 0.35.0

Compare Source

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

Breaking Changes

The logging API now supports a fluent interface for structured logging with attributes:

// usage before
logger := sentry.NewLogger(ctx)
// attributes weren't being set permanently
logger.SetAttributes(
    attribute.String("version", "1.0.0"),
)
logger.Infof(ctx, "Message with parameters %d and %d", 1, 2)

// new behavior
ctx := context.Background()
logger := sentry.NewLogger(ctx)

// Set permanent attributes on the logger
logger.SetAttributes(
    attribute.String("version", "1.0.0"),
)

// Chain attributes on individual log entries
logger.Info().
    String("key.string", "value").
    Int("key.int", 42).
    Bool("key.bool", true).
    Emitf("Message with parameters %d and %d", 1, 2)
Bug Fixes
  • Correctly serialize FailureIssueThreshold and RecoveryThreshold onto check-in payloads (#​1060)

v0.34.1: 0.34.1

Compare Source

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

Bug Fixes
  • Allow flush to be used multiple times without issues, particularly for the batch logger (#​1051)
  • Fix race condition in Scope.GetSpan() method by adding proper mutex locking (#​1044)
  • Guard transport on Close() to prevent panic when called multiple times (#​1044)

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)

v0.33.0: 0.33.0

Compare Source

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

Breaking Changes
  • Rename the internal Logger to DebugLogger. This feature was only used when you set Debug: True in your sentry.Init() call. If you haven't used the Logger directly, no changes are necessary. (#​1012)
Features
  • Add support for Structured Logging. (#​1010)

    logger := sentry.NewLogger(ctx)
    logger.Info(ctx, "Hello, Logs!")

    You can learn more about Sentry Logs on our docs and the examples.

  • Add new attributes APIs, which are currently only exposed on logs. (#​1007)

Bug Fixes
  • Do not push a new scope on StartSpan. (#​1013)
  • Fix an issue where the propagated smapling decision wasn't used. (#​995)
  • [Otel] Prefer httpRoute over httpTarget for span descriptions. (#​1002)
Misc
  • Update github.com/stretchr/testify to v1.8.4. (#​988)

v0.32.0: 0.32.0

Compare Source

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

Breaking Changes
  • Bump the minimum Go version to 1.22. The supported versions are 1.22, 1.23 and 1.24. (#​967)
  • Setting any values on span.Extra has no effect anymore. Use SetData(name string, value interface{}) instead. (#​864)
Features
  • Add a MockTransport and MockScope. (#​972)
Bug Fixes
  • Fix writing *http.Request in the Logrus JSONFormatter. (#​955)
Misc
  • Transaction data attributes are now seralized as trace context data attributes, allowing you to query these attributes in the Trace Explorer.

v0.31.1: 0.31.1

Compare Source

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

Bug Fixes
  • Correct wrong module name for sentry-go/logrus (#​950)

v0.31.0: 0.31.0

Compare Source

Breaking Changes
  • Remove support for metrics. Read more about the end of the Metrics beta here. (#​914)

  • Remove support for profiling. (#​915)

  • Remove Segment field from the User struct. This field is no longer used in the Sentry product. (#​928)

  • Every integration is now a separate module, reducing the binary size and number of dependencies. Once you update sentry-go to latest version, you'll need to go get the integration you want to use. For example, if you want to use the echo integration, you'll need to run go get github.com/getsentry/sentry-go/echo (#​919).

Features
  • Add the ability to override hub in context for integrations that use custom context. (#​931)

  • Add HubProvider Hook for sentrylogrus, enabling dynamic Sentry hub allocation for each log entry or goroutine. (#​936)

This change enhances compatibility with Sentry's recommendation of using separate hubs per goroutine. To ensure a separate Sentry hub for each goroutine, configure the HubProvider like this:

hook, err := sentrylogrus.New(nil, sentry.ClientOptions{})
if err != nil {
    log.Fatalf("Failed to initialize Sentry hook: %v", err)
}

// Set a custom HubProvider to generate a new hub for each goroutine or log entry
hook.SetHubProvider(func() *sentry.Hub {
    client, _ := sentry.NewClient(sentry.ClientOptions{})
    return sentry.NewHub(client, sentry.NewScope())
})

logrus.AddHook(hook)
Bug Fixes
  • Add support for closing worker goroutines started by the HTTPTranport to prevent goroutine leaks. (#​894)
client, _ := sentry.NewClient()
defer client.Close()

Worker can be also closed by calling Close() method on the HTTPTransport instance. Close should be called after Flush and before terminating the program otherwise some events may be lost.

transport := sentry.NewHTTPTransport()
defer transport.Close()
Misc

v0.30.0: 0.30.0

Compare Source

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

Features
  • Add sentryzerolog integration (#​857)
  • Add sentryslog integration (#​865)
  • Always set Mechanism Type to generic (#​896)
Bug Fixes
  • Prevent panic in fasthttp and fiber integration in case a malformed URL has to be parsed (#​912)
Misc

Drop support for Go 1.18, 1.19 and 1.20. The currently supported Go versions are the last 3 stable releases: 1.23, 1.22 and 1.21.

v0.29.1: 0.29.1

Compare Source

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

Bug Fixes
  • Correlate errors to the current trace (#​886)
  • Set the trace context when the transaction finishes (#​888)
Misc
  • Update the sentrynegroni integration to use the latest (v3.1.1) version of Negroni (#​885)

v0.29.0: 0.29.0

Compare Source

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

Breaking Changes
  • Remove the sentrymartini integration (#​861)
  • The WrapResponseWriter has been moved from the sentryhttp package to the internal/httputils package. If you've imported it previosuly, you'll need to copy the implementation in your project. (#​871)
Features
  • Add new convenience methods to continue a trace and propagate tracing headers for error-only use cases. (#​862)

    If you are not using one of our integrations, you can manually continue an incoming trace by using sentry.ContinueTrace() by providing the sentry-trace and baggage header received from a downstream SDK.

    hub := sentry.CurrentHub()
    sentry.ContinueTrace(hub, r.Header.Get(sentry.SentryTraceHeader), r.Header.Get(sentry.SentryBaggageHeader)),

    You can use hub.GetTraceparent() and hub.GetBaggage() to fetch the necessary header values for outgoing HTTP requests.

    hub := sentry.GetHubFromContext(ctx)
    req, _ := http.NewRequest("GET", "http://localhost:3000", nil)
    req.Header.Add(sentry.SentryTraceHeader, hub.GetTraceparent())
    req.Header.Add(sentry.SentryBaggageHeader, hub.GetBaggage())
Bug Fixes
  • Initialize HTTPTransport.limit if nil (#​844)
  • Fix sentry.StartTransaction() returning a transaction with an outdated context on existing transactions (#​854)
  • Treat Proxy-Authorization as a sensitive header (#​859)
  • Add support for the http.Hijacker interface to the sentrynegroni package (#​871)
  • Go version >= 1.23: Use value from http.Request.Pattern for HTTP transaction names when using sentryhttp & sentrynegroni (#​875)
  • Go version >= 1.21: Fix closure functions name grouping (#​877)
Misc

v0.28.1: 0.28.1

Compare Source

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

Bug Fixes
  • Implement http.ResponseWriter to hook into various parts of the response process (#​837)

v0.28.0: 0.28.0

Compare Source

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

Features
  • Add a Fiber performance tracing & error reporting integration (#​795)
  • Add performance tracing to the Echo integration (#​722)
  • Add performance tracing to the FastHTTP integration (#​732)
  • Add performance tracing to the Iris integration (#​809)
  • Add performance tracing to the Negroni integration (#​808)
  • Add FailureIssueThreshold & RecoveryThreshold to MonitorConfig (#​775)
  • Use errors.Unwrap() to create exception groups (#​792)
  • Add support for matching on strings for ClientOptions.IgnoreErrors & ClientOptions.IgnoreTransactions (#​819)
  • Add http.request.method attribute for performance span data (#​786)
  • Accept interface{} for span data values (#​784)
Fixes
  • Fix missing stack trace for parsing error in logrusentry (#​689)

v0.27.0: 0.27.0

Compare Source

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

Breaking Changes
  • Exception.ThreadId is now typed as uint64. It was wrongly typed as string before. (#​770)
Misc
  • Export Event.Attachments (#​771)

v0.26.0: 0.26.0

Compare Source

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

Breaking Changes

As previously announced, this release removes some methods from the SDK.

  • sentry.TransactionName() use sentry.WithTransactionName() instead.
  • sentry.OpName() use sentry.WithOpName() instead.
  • sentry.TransctionSource() use sentry.WithTransactionSource() instead.
  • sentry.SpanSampled() use sentry.WithSpanSampled() instead.
Features
  • Add WithDescription span option (#​751)

    span := sentry.StartSpan(ctx, "http.client", WithDescription("GET /api/users"))
  • Add support for package name parsing in Go 1.20 and higher (#​730)

Bug Fixes
  • Apply ClientOptions.SampleRate only to errors & messages (#​754)
  • Check if git is available before executing any git commands (#​737)

v0.25.0: 0.25.0

Compare Source

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

Breaking Changes

As previously announced, this release removes two global constants from the SDK.

  • sentry.Version was removed. Use sentry.SDKVersion instead (#​727)
  • sentry.SDKIdentifier was removed. Use Client.GetSDKIdentifier() instead (#​727)
Features
  • Add ClientOptions.IgnoreTransactions, which allows you to ignore specific transactions based on their name (#​717)
  • Add ClientOptions.Tags, which allows you to set global tags that are applied to all events. You can also define tags by setting SENTRY_TAGS_ environment variables (#​718)
Bug fixes
  • Fix an issue in the profiler that would cause an infinite loop if the duration of a transaction is longer than 30 seconds (#​724)
Misc
  • dsn.RequestHeaders() is not to be removed, though it is still considered deprecated and should only be used when using a custom transport that sends events to the /store endpoint (#​720)

v0.24.1: 0.24.1

Compare Source

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

Bug fixes
  • Prevent a panic in sentryotel.flushSpanProcessor() ((#​711))
  • Prevent a panic when setting the SDK identifier (#​715)

v0.24.0: 0.24.0

Compare Source

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

Deprecations
  • sentry.Version to be removed in 0.25.0. Use sentry.SDKVersion instead.
  • sentry.SDKIdentifier to be removed in 0.25.0. Use Client.GetSDKIdentifier() instead.
  • dsn.RequestHeaders() to be removed after 0.25.0, but no earlier than December 1, 2023. Requests to the /envelope endpoint are authenticated using the DSN in the envelope header.
Features
  • Run a single instance of the profiler instead of multiple ones for each Go routine (#​655)
  • Use the route path as the transaction names when using the Gin integration (#​675)
  • Set the SDK name accordingly when a framework integration is used (#​694)
  • Read release information (VCS revision) from debug.ReadBuildInfo (#​704)
Bug fixes
  • [otel] Fix incorrect usage of attributes.Value.AsString (#​684)
  • Fix trace function name parsing in profiler on go1.21+ (#​695)
Misc

v0.23.0: 0.23.0

Compare Source

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

Features
  • Initial support for Cron Monitoring (#​661)

    This is how the basic usage of the feature looks like:

    // 🟡 Notify Sentry your job is running:
    checkinId := sentry.CaptureCheckIn(
      &sentry.CheckIn{
        MonitorSlug: "<monitor-slug>",
        Status:      sentry.CheckInStatusInProgress,
      },
      nil,
    )
    
    // Execute your scheduled task here...
    
    // 🟢 Notify Sentry your job has completed successfully:
    sentry.CaptureCheckIn(
      &sentry.CheckIn{
        ID:          *checkinId,
        MonitorSlug: "<monitor-slug>",
        Status:      sentry.CheckInStatusOK,
      },
      nil,
    )

    A full example of using Crons Monitoring is available here.

    More documentation on configuring and using Crons can be found here.

  • Add support for Event Attachments (#​670)

    It's now possible to add file/binary payloads to Sentry events:

    sentry.ConfigureScope(func(scope *sentry.Scope) {
      scope.AddAttachment(&Attachment{
        Filename:    "report.html",
        ContentType: "text/html",
        Payload:     []byte("<h1>Look, HTML</h1>"),
      })
    })

    The attachment will then be accessible on the Issue Details page.

  • Add sampling decision to trace envelope header (#​666)

  • Expose SpanFromContext function (#​672)

Bug fixes
  • Make Span.Finish a no-op when the span is already finished (#​660)

v0.22.0: 0.22.0

Compare Source

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

This release contains initial profiling support, as well as a few bug fixes and improvements.

Features
  • Initial (alpha) support for profiling (#​626)

    Profiling is disabled by default. To enable it, configure both TracesSampleRate and ProfilesSampleRate when initializing the SDK:

    err := sentry.Init(sentry.ClientOptions{
      Dsn: "__DSN__",
      EnableTracing: true,
      TracesSampleRate: 1.0,
      // The sampling rate for profiling is relative to TracesSampleRate. In this case, we'll capture profiles for 100% of transactions.
      ProfilesSampleRate: 1.0,
    })

    More documentation on profiling and current limitations can be found here.

  • Add transactions/tracing support go the Gin integration (#​644)

Bug fixes
  • Always set a valid source on transactions (#​637)
  • Clone scope.Context in more places to avoid panics on concurrent reads and writes (#​638)
  • Fix frames recognized as not being in-app still showing as in-app (#​647)

v0.21.0: 0.21.0

Compare Source

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

Note: this release includes one breaking change and some deprecations, which are listed below.

Breaking Changes

This change does not apply if you use https://sentry.io

  • Remove support for the /store endpoint (#​631)
    • This change requires a self-hosted version of Sentry 20.6.0 or higher. If you are using a version of self-hosted Sentry (aka on-premise) older than 20.6.0, then you will need to upgrade your instance.
Features
  • Rename four span option functions (#​611, #​624)
    • TransctionSource -> WithTransactionSource
    • SpanSampled -> WithSpanSampled
    • OpName -> WithOpName
    • TransactionName -> WithTransactionName
    • Old functions TransctionSource, SpanSampled, OpName, and TransactionName are still available but are now deprecated and will be removed in a future release.
  • Make client.EventFromMessage and client.EventFromException methods public (#​607)
  • Add client.SetException method (#​607)
    • This allows to set or add errors to an existing Event.
Bug Fixes
  • Protect from panics while doing concurrent reads/writes to Span data fields (#​609)
  • [otel] Improve detection of Sentry-related spans (#​632, #​636)
    • Fixes cases when HTTP spans containing requests to Sentry were captured by Sentry (#​627)
Misc

v0.20.0: 0.20.0

Compare Source

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

Note: this release has some breaking changes, which are listed below.

Breaking Changes
  • Remove the following methods: Scope.SetTransaction(), Scope.Transaction() (#​605)

    Span.Name should be used instead to access the transaction's name.

    For example, the following TracesSampler function should be now written as follows:

    Before:

    TracesSampler: func(ctx sentry.SamplingContext) float64 {
      hub := sentry.GetHubFromContext(ctx.Span.Context())
      if hub.Scope().Transaction() == "GET /health" {
        return 0
      }
      return 1
    },

    After:

    
    

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.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Jan 2, 2025

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 2 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.19 -> 1.23.0
golang.org/x/sys v0.3.0 -> v0.18.0
golang.org/x/text v0.5.0 -> v0.14.0

@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.31.1 fix(deps): update module github.com/getsentry/sentry-go to v0.31.1 - autoclosed Feb 10, 2025
@renovate renovate Bot closed this Feb 10, 2025
@renovate renovate Bot deleted the renovate/github.com-getsentry-sentry-go-0.x branch February 10, 2025 01:09
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.31.1 - autoclosed fix(deps): update module github.com/getsentry/sentry-go to v0.31.1 Feb 10, 2025
@renovate renovate Bot reopened this Feb 10, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch 2 times, most recently from 734ae1f to c462f33 Compare February 10, 2025 10:28
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from c462f33 to d542d47 Compare March 3, 2025 17:22
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from d542d47 to 6fc57c2 Compare March 11, 2025 12:14
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch 2 times, most recently from 3c00b37 to ab4b360 Compare April 10, 2025 13:14
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.31.1 fix(deps): update module github.com/getsentry/sentry-go to v0.32.0 Apr 10, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.32.0 fix(deps): update module github.com/getsentry/sentry-go to v0.32.0 - autoclosed Apr 29, 2025
@renovate renovate Bot closed this Apr 29, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.32.0 - autoclosed fix(deps): update module github.com/getsentry/sentry-go to v0.32.0 Apr 29, 2025
@renovate renovate Bot reopened this Apr 29, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from a42771b to ab4b360 Compare April 29, 2025 06:53
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from ab4b360 to 689ce5d Compare May 7, 2025 12:36
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 689ce5d to 446628c Compare May 15, 2025 16:51
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.32.0 fix(deps): update module github.com/getsentry/sentry-go to v0.33.0 May 15, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 446628c to 9197c02 Compare June 23, 2025 16:06
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.33.0 fix(deps): update module github.com/getsentry/sentry-go to v0.34.0 Jun 23, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 9197c02 to abfb5cf Compare July 7, 2025 17:06
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.34.0 fix(deps): update module github.com/getsentry/sentry-go to v0.34.1 Jul 7, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from abfb5cf to 7a23458 Compare July 31, 2025 21:41
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.34.1 fix(deps): update module github.com/getsentry/sentry-go to v0.35.0 Jul 31, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch 2 times, most recently from c79c767 to 8a27687 Compare August 13, 2025 16:14
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.35.0 fix(deps): update module github.com/getsentry/sentry-go to v0.35.1 Aug 13, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.36.0 fix(deps): update module github.com/getsentry/sentry-go to v0.36.1 Oct 21, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 9027efd to 18bb048 Compare October 28, 2025 20:33
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.36.1 fix(deps): update module github.com/getsentry/sentry-go to v0.36.2 Oct 28, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 18bb048 to 73217ad Compare November 13, 2025 21:36
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.36.2 fix(deps): update module github.com/getsentry/sentry-go to v0.37.0 Nov 13, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 73217ad to 1b4a76b Compare November 17, 2025 11:50
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.37.0 fix(deps): update module github.com/getsentry/sentry-go to v0.38.0 Nov 17, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.38.0 fix(deps): update module github.com/getsentry/sentry-go to v0.39.0 Nov 24, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 1b4a76b to 4eda375 Compare November 24, 2025 17:30
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.39.0 fix(deps): update module github.com/getsentry/sentry-go to v0.40.0 Nov 27, 2025
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 4eda375 to d015ac9 Compare November 27, 2025 18:40
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Dec 15, 2025

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 2 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.19 -> 1.24.0
golang.org/x/sys v0.3.0 -> v0.18.0
golang.org/x/text v0.5.0 -> v0.14.0

@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.40.0 fix(deps): update module github.com/getsentry/sentry-go to v0.40.0 - autoclosed Jan 9, 2026
@renovate renovate Bot closed this Jan 9, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.40.0 - autoclosed fix(deps): update module github.com/getsentry/sentry-go to v0.40.0 Jan 9, 2026
@renovate renovate Bot reopened this Jan 9, 2026
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch 2 times, most recently from 9797b32 to 6e822d9 Compare January 15, 2026 16:48
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.40.0 fix(deps): update module github.com/getsentry/sentry-go to v0.41.0 Jan 15, 2026
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 6e822d9 to 88eb0b0 Compare January 27, 2026 12:38
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.41.0 fix(deps): update module github.com/getsentry/sentry-go to v0.42.0 Jan 27, 2026
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 88eb0b0 to bfd89e8 Compare February 24, 2026 14:38
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.42.0 fix(deps): update module github.com/getsentry/sentry-go to v0.43.0 Feb 24, 2026
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from bfd89e8 to 7bd2940 Compare March 24, 2026 14:30
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.43.0 fix(deps): update module github.com/getsentry/sentry-go to v0.44.0 Mar 24, 2026
@renovate renovate Bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 7bd2940 to 1662171 Compare March 24, 2026 16:41
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.44.0 fix(deps): update module github.com/getsentry/sentry-go to v0.44.1 Mar 24, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/getsentry/sentry-go to v0.44.1 fix(deps): update module github.com/getsentry/sentry-go to v0.44.1 - autoclosed Apr 2, 2026
@renovate renovate Bot closed this Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants