giantswarm / aws-operator

Manages Kubernetes clusters running on AWS (before Cluster API)
https://www.giantswarm.io/
Apache License 2.0
131 stars 22 forks source link

Update module github.com/getsentry/sentry-go to v0.25.0 #3627

Closed renovate[bot] closed 11 months ago

renovate[bot] commented 11 months ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
github.com/getsentry/sentry-go replace minor v0.17.0 -> v0.25.0

Release Notes

getsentry/sentry-go (github.com/getsentry/sentry-go) ### [`v0.25.0`](https://togithub.com/getsentry/sentry-go/releases/tag/v0.25.0): 0.25.0 [Compare Source](https://togithub.com/getsentry/sentry-go/compare/v0.24.1...v0.25.0) 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](https://togithub.com/getsentry/sentry-go/pull/727)) - `sentry.SDKIdentifier` was removed. Use `Client.GetSDKIdentifier()` instead ([#​727](https://togithub.com/getsentry/sentry-go/pull/727)) ##### Features - Add `ClientOptions.IgnoreTransactions`, which allows you to ignore specific transactions based on their name ([#​717](https://togithub.com/getsentry/sentry-go/pull/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](https://togithub.com/getsentry/sentry-go/pull/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](https://togithub.com/getsentry/sentry-go/issues/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](https://togithub.com/getsentry/sentry-go/pull/720)) ### [`v0.24.1`](https://togithub.com/getsentry/sentry-go/releases/tag/v0.24.1): 0.24.1 [Compare Source](https://togithub.com/getsentry/sentry-go/compare/v0.24.0...v0.24.1) 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)](https://togithub.com/getsentry/sentry-go/pull/711)) - Prevent a panic when setting the SDK identifier ([#​715](https://togithub.com/getsentry/sentry-go/pull/715)) ### [`v0.24.0`](https://togithub.com/getsentry/sentry-go/releases/tag/v0.24.0): 0.24.0 [Compare Source](https://togithub.com/getsentry/sentry-go/compare/v0.23.0...v0.24.0) 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](https://togithub.com/getsentry/sentry-go/pull/655)) - Use the route path as the transaction names when using the Gin integration ([#​675](https://togithub.com/getsentry/sentry-go/pull/675)) - Set the SDK name accordingly when a framework integration is used ([#​694](https://togithub.com/getsentry/sentry-go/pull/694)) - Read release information (VCS revision) from `debug.ReadBuildInfo` ([#​704](https://togithub.com/getsentry/sentry-go/pull/704)) ##### Bug fixes - \[otel] Fix incorrect usage of `attributes.Value.AsString` ([#​684](https://togithub.com/getsentry/sentry-go/pull/684)) - Fix trace function name parsing in profiler on go1.21+ ([#​695](https://togithub.com/getsentry/sentry-go/pull/695)) ##### Misc - Test against Go 1.21 ([#​695](https://togithub.com/getsentry/sentry-go/pull/695)) - Make tests more robust ([#​698](https://togithub.com/getsentry/sentry-go/pull/698), [#​699](https://togithub.com/getsentry/sentry-go/pull/699), [#​700](https://togithub.com/getsentry/sentry-go/pull/700), [#​702](https://togithub.com/getsentry/sentry-go/pull/702)) ### [`v0.23.0`](https://togithub.com/getsentry/sentry-go/releases/tag/v0.23.0): 0.23.0 [Compare Source](https://togithub.com/getsentry/sentry-go/compare/v0.22.0...v0.23.0) The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.23.0. ##### Features - Initial support for [Cron Monitoring](https://docs.sentry.io/product/crons/) ([#​661](https://togithub.com/getsentry/sentry-go/pull/661)) This is how the basic usage of the feature looks like: ```go // 🟡 Notify Sentry your job is running: checkinId := sentry.CaptureCheckIn( &sentry.CheckIn{ MonitorSlug: "", Status: sentry.CheckInStatusInProgress, }, nil, ) // Execute your scheduled task here... // 🟢 Notify Sentry your job has completed successfully: sentry.CaptureCheckIn( &sentry.CheckIn{ ID: *checkinId, MonitorSlug: "", Status: sentry.CheckInStatusOK, }, nil, ) ``` A full example of using Crons Monitoring is available [here](https://togithub.com/getsentry/sentry-go/blob/dde4d360660838f3c2e0ced8205bc8f7a8d312d9/\_examples/crons/main.go). More documentation on configuring and using Crons [can be found here](https://docs.sentry.io/platforms/go/crons/). - Add support for [Event Attachments](https://docs.sentry.io/platforms/go/enriching-events/attachments/) ([#​670](https://togithub.com/getsentry/sentry-go/pull/670)) It's now possible to add file/binary payloads to Sentry events: ```go sentry.ConfigureScope(func(scope *sentry.Scope) { scope.AddAttachment(&Attachment{ Filename: "report.html", ContentType: "text/html", Payload: []byte("

Look, HTML

"), }) }) ``` The attachment will then be accessible on the Issue Details page. - Add sampling decision to trace envelope header ([#​666](https://togithub.com/getsentry/sentry-go/pull/666)) - Expose SpanFromContext function ([#​672](https://togithub.com/getsentry/sentry-go/pull/672)) ##### Bug fixes - Make `Span.Finish` a no-op when the span is already finished ([#​660](https://togithub.com/getsentry/sentry-go/pull/660)) ### [`v0.22.0`](https://togithub.com/getsentry/sentry-go/releases/tag/v0.22.0): 0.22.0 [Compare Source](https://togithub.com/getsentry/sentry-go/compare/v0.21.0...v0.22.0) The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.22.0. This release contains initial [profiling](https://docs.sentry.io/product/profiling/) support, as well as a few bug fixes and improvements. ##### Features - Initial (alpha) support for [profiling](https://docs.sentry.io/product/profiling/) ([#​626](https://togithub.com/getsentry/sentry-go/pull/626)) Profiling is disabled by default. To enable it, configure both `TracesSampleRate` and `ProfilesSampleRate` when initializing the SDK: ```go 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](https://docs.sentry.io/platforms/go/profiling/). - Add transactions/tracing support go the Gin integration ([#​644](https://togithub.com/getsentry/sentry-go/pull/644)) ##### Bug fixes - Always set a valid source on transactions ([#​637](https://togithub.com/getsentry/sentry-go/pull/637)) - Clone scope.Context in more places to avoid panics on concurrent reads and writes ([#​638](https://togithub.com/getsentry/sentry-go/pull/638)) - Fixes [#​570](https://togithub.com/getsentry/sentry-go/issues/570) - Fix frames recognized as not being in-app still showing as in-app ([#​647](https://togithub.com/getsentry/sentry-go/pull/647)) ### [`v0.21.0`](https://togithub.com/getsentry/sentry-go/releases/tag/v0.21.0): 0.21.0 [Compare Source](https://togithub.com/getsentry/sentry-go/compare/v0.20.0...v0.21.0) 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 ** - Remove support for the `/store` endpoint ([#​631](https://togithub.com/getsentry/sentry-go/pull/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](https://develop.sentry.dev/self-hosted/) (aka *on-premise*) older than 20.6.0, then you will need to [upgrade](https://develop.sentry.dev/self-hosted/releases/) your instance. ##### Features - Rename four span option functions ([#​611](https://togithub.com/getsentry/sentry-go/pull/611), [#​624](https://togithub.com/getsentry/sentry-go/pull/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](https://togithub.com/getsentry/sentry-go/pull/607)) - Add `client.SetException` method ([#​607](https://togithub.com/getsentry/sentry-go/pull/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](https://togithub.com/getsentry/sentry-go/pull/609)) - \[otel] Improve detection of Sentry-related spans ([#​632](https://togithub.com/getsentry/sentry-go/pull/632), [#​636](https://togithub.com/getsentry/sentry-go/pull/636)) - Fixes cases when HTTP spans containing requests to Sentry were captured by Sentry ([#​627](https://togithub.com/getsentry/sentry-go/issues/627)) ##### Misc - Drop testing in (legacy) GOPATH mode ([#​618](https://togithub.com/getsentry/sentry-go/pull/618)) - Remove outdated documentation from https://pkg.go.dev/github.com/getsentry/sentry-go ([#​623](https://togithub.com/getsentry/sentry-go/pull/623)) ### [`v0.20.0`](https://togithub.com/getsentry/sentry-go/releases/tag/v0.20.0): 0.20.0 [Compare Source](https://togithub.com/getsentry/sentry-go/compare/v0.19.0...v0.20.0) 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](https://togithub.com/getsentry/sentry-go/pull/605)) Span.Name should be used instead to access the transaction's name. For example, the following [`TracesSampler`](https://docs.sentry.io/platforms/go/configuration/sampling/#setting-a-sampling-function) function should be now written as follows: **Before:** ```go TracesSampler: func(ctx sentry.SamplingContext) float64 { hub := sentry.GetHubFromContext(ctx.Span.Context()) if hub.Scope().Transaction() == "GET /health" { return 0 } return 1 }, ``` **After:** ```go TracesSampler: func(ctx sentry.SamplingContext) float64 { if ctx.Span.Name == "GET /health" { return 0 } return 1 }, ``` ##### Features - Add `Span.SetContext()` method ([#​599](https://togithub.com/getsentry/sentry-go/pull/599/)) - It is recommended to use it instead of `hub.Scope().SetContext` when setting or updating context on transactions. - Add `DebugMeta` interface to `Event` and extend `Frame` structure with more fields ([#​606](https://togithub.com/getsentry/sentry-go/pull/606)) - More about DebugMeta interface [here](https://develop.sentry.dev/sdk/event-payloads/debugmeta/). ##### Bug Fixes - \[otel] Fix missing OpenTelemetry context on some events ([#​599](https://togithub.com/getsentry/sentry-go/pull/599), [#​605](https://togithub.com/getsentry/sentry-go/pull/605)) - Fixes ([#​596](https://togithub.com/getsentry/sentry-go/issues/596)). - \[otel] Better handling for HTTP span attributes ([#​610](https://togithub.com/getsentry/sentry-go/pull/610)) ##### Misc - Bump minimum versions: `github.com/kataras/iris/v12` to 12.2.0, `github.com/labstack/echo/v4` to v4.10.0 ([#​595](https://togithub.com/getsentry/sentry-go/pull/595)) - Resolves [GO-2022-1144 / CVE-2022-41717](https://deps.dev/advisory/osv/GO-2022-1144), [GO-2023-1495 / CVE-2022-41721](https://deps.dev/advisory/osv/GO-2023-1495), [GO-2022-1059 / CVE-2022-32149](https://deps.dev/advisory/osv/GO-2022-1059). - Bump `google.golang.org/protobuf` minimum required version to 1.29.1 ([#​604](https://togithub.com/getsentry/sentry-go/pull/604)) - This fixes a potential denial of service issue ([CVE-2023-24535](https://togithub.com/advisories/GHSA-hw7c-3rfg-p46j)). - Exclude the `otel` module when building in GOPATH mode ([#​615](https://togithub.com/getsentry/sentry-go/pull/615)) ### [`v0.19.0`](https://togithub.com/getsentry/sentry-go/releases/tag/v0.19.0): 0.19.0 [Compare Source](https://togithub.com/getsentry/sentry-go/compare/v0.18.0...v0.19.0) The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.19.0. ##### Features - Add support for exception mechanism metadata ([#​564](https://togithub.com/getsentry/sentry-go/pull/564/)) - More about exception mechanisms [here](https://develop.sentry.dev/sdk/event-payloads/exception/#exception-mechanism). ##### Bug Fixes - \[otel] Use the correct "trace" context when sending a Sentry error ([#​580](https://togithub.com/getsentry/sentry-go/pull/580/)) ##### Misc - Drop support for Go 1.17, add support for Go 1.20 ([#​563](https://togithub.com/getsentry/sentry-go/pull/563/)) - According to our policy, we're officially supporting the last three minor releases of Go. - Switch repository license to MIT ([#​583](https://togithub.com/getsentry/sentry-go/pull/583/)) - More about Sentry licensing [here](https://open.sentry.io/licensing/). - Bump `golang.org/x/text` minimum required version to 0.3.8 ([#​586](https://togithub.com/getsentry/sentry-go/pull/586)) - This fixes [CVE-2022-32149](https://togithub.com/advisories/GHSA-69ch-w2m2-3vjp) vulnerability. ### [`v0.18.0`](https://togithub.com/getsentry/sentry-go/releases/tag/v0.18.0): 0.18.0 [Compare Source](https://togithub.com/getsentry/sentry-go/compare/v0.17.0...v0.18.0) The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.18.0. This release contains initial support for [OpenTelemetry](https://opentelemetry.io/) and various other bug fixes and improvements. **Note**: This is the last release supporting Go 1.17. ##### Features - Initial support for [OpenTelemetry](https://opentelemetry.io/). You can now send all your OpenTelemetry spans to Sentry. Install the `otel` module ```bash go get github.com/getsentry/sentry-go \ github.com/getsentry/sentry-go/otel ``` Configure the Sentry and OpenTelemetry SDKs ```go import ( "go.opentelemetry.io/otel" sdktrace "go.opentelemetry.io/otel/sdk/trace" "github.com/getsentry/sentry-go" "github.com/getsentry/sentry-go/otel" // ... ) // Initlaize the Sentry SDK sentry.Init(sentry.ClientOptions{ Dsn: "__DSN__", EnableTracing: true, TracesSampleRate: 1.0, }) // Set up the Sentry span processor tp := sdktrace.NewTracerProvider( sdktrace.WithSpanProcessor(sentryotel.NewSentrySpanProcessor()), // ... ) otel.SetTracerProvider(tp) // Set up the Sentry propagator otel.SetTextMapPropagator(sentryotel.NewSentryPropagator()) ``` You can read more about using OpenTelemetry with Sentry in our [docs](https://docs.sentry.io/platforms/go/performance/instrumentation/opentelemetry/). ##### Bug Fixes - Do not freeze the Dynamic Sampling Context when no Sentry values are present in the baggage header ([#​532](https://togithub.com/getsentry/sentry-go/pull/532)) - Create a frozen Dynamic Sampling Context when calling `span.ToBaggage()` ([#​566](https://togithub.com/getsentry/sentry-go/pull/566)) - Fix baggage parsing and encoding in vendored otel package ([#​568](https://togithub.com/getsentry/sentry-go/pull/568)) ##### Misc - Add `Span.SetDynamicSamplingContext()` ([#​539](https://togithub.com/getsentry/sentry-go/pull/539/)) - Add various getters for `Dsn` ([#​540](https://togithub.com/getsentry/sentry-go/pull/540)) - Add `SpanOption::SpanSampled` ([#​546](https://togithub.com/getsentry/sentry-go/pull/546)) - Add `Span.SetData()` ([#​542](https://togithub.com/getsentry/sentry-go/pull/542)) - Add `Span.IsTransaction()` ([#​543](https://togithub.com/getsentry/sentry-go/pull/543)) - Add `Span.GetTransaction()` method ([#​558](https://togithub.com/getsentry/sentry-go/pull/558))

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.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 11 months ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.