Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #919 +/- ##
==========================================
- Coverage 83.85% 83.56% -0.30%
==========================================
Files 49 49
Lines 5128 5128
==========================================
- Hits 4300 4285 -15
- Misses 674 687 +13
- Partials 154 156 +2 ☔ View full report in Codecov by Sentry. |
|
I haven't touched any dependencies (version), but it's complaining about Fiber. I'll just update it I guess. cc @cleptric |
|
Tested locally, works fine. This is technically a breaking change since if someone runs |
|
|
||
| - Remove all code related to Sentry's previous Metrics product. Read more about the end of the Metrics beta ([here](https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Metrics-Beta-Ended-on-October-7th)) ([#914](https://github.com/getsentry/sentry-go/pull/914)) | ||
|
|
||
| - 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](github.com/getsentry/sentry-go/pull/919)). |
There was a problem hiding this comment.
reducing the binary size
This should not be the case due to Module Graph Pruning.
There was a problem hiding this comment.
Hmm, I tested this locally just to make sure. Imported echo only, and did go build .
echo-new 4931.21 KB
echo-old 4948.81 KB
There was a problem hiding this comment.
go build -ldflags " -s -w" .
echo-new 3454.99 KB
echo-old 3472.00 KB
…37019) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/getsentry/sentry-go](https://redirect.github.com/getsentry/sentry-go) | `v0.30.0` -> `v0.31.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>getsentry/sentry-go (github.com/getsentry/sentry-go)</summary> ### [`v0.31.1`](https://redirect.github.com/getsentry/sentry-go/releases/tag/v0.31.1): 0.31.1 [Compare Source](https://redirect.github.com/getsentry/sentry-go/compare/v0.31.0...v0.31.1) 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](https://redirect.github.com/getsentry/sentry-go/pull/950)) ### [`v0.31.0`](https://redirect.github.com/getsentry/sentry-go/releases/tag/v0.31.0): 0.31.0 [Compare Source](https://redirect.github.com/getsentry/sentry-go/compare/v0.30.0...v0.31.0) ##### Breaking Changes - Remove support for metrics. Read more about the end of the Metrics beta [here](https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Metrics-Beta-Ended-on-October-7th). ([#​914](https://redirect.github.com/getsentry/sentry-go/pull/914)) - Remove support for profiling. ([#​915](https://redirect.github.com/getsentry/sentry-go/pull/915)) - Remove `Segment` field from the `User` struct. This field is no longer used in the Sentry product. ([#​928](https://redirect.github.com/getsentry/sentry-go/pull/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](redirect.github.com/getsentry/sentry-go/pull/919)). ##### Features Add the ability to override `hub` in `context` for integrations that use custom context. ([#​931](https://redirect.github.com/getsentry/sentry-go/pull/931)) - Add `HubProvider` Hook for `sentrylogrus`, enabling dynamic Sentry hub allocation for each log entry or goroutine. ([#​936](https://redirect.github.com/getsentry/sentry-go/pull/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: ```go 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](https://redirect.github.com/getsentry/sentry-go/pull/894)) ```go 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. ```go transport := sentry.NewHTTPTransport() defer transport.Close() ``` ##### Misc - Bump [gin-gonic/gin](https://redirect.github.com/gin-gonic/gin) to v1.9.1. ([#​946](https://redirect.github.com/getsentry/sentry-go/pull/946)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (UTC), 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/open-telemetry/opentelemetry-collector-contrib). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44NS4wIiwidXBkYXRlZEluVmVyIjoiMzkuODUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
…pen-telemetry#37019) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/getsentry/sentry-go](https://redirect.github.com/getsentry/sentry-go) | `v0.30.0` -> `v0.31.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>getsentry/sentry-go (github.com/getsentry/sentry-go)</summary> ### [`v0.31.1`](https://redirect.github.com/getsentry/sentry-go/releases/tag/v0.31.1): 0.31.1 [Compare Source](https://redirect.github.com/getsentry/sentry-go/compare/v0.31.0...v0.31.1) 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` ([#&open-telemetry#8203;950](https://redirect.github.com/getsentry/sentry-go/pull/950)) ### [`v0.31.0`](https://redirect.github.com/getsentry/sentry-go/releases/tag/v0.31.0): 0.31.0 [Compare Source](https://redirect.github.com/getsentry/sentry-go/compare/v0.30.0...v0.31.0) ##### Breaking Changes - Remove support for metrics. Read more about the end of the Metrics beta [here](https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Metrics-Beta-Ended-on-October-7th). ([#&open-telemetry#8203;914](https://redirect.github.com/getsentry/sentry-go/pull/914)) - Remove support for profiling. ([#&open-telemetry#8203;915](https://redirect.github.com/getsentry/sentry-go/pull/915)) - Remove `Segment` field from the `User` struct. This field is no longer used in the Sentry product. ([#&open-telemetry#8203;928](https://redirect.github.com/getsentry/sentry-go/pull/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` ([#&open-telemetry#8203;919](redirect.github.com/getsentry/sentry-go/pull/919)). ##### Features Add the ability to override `hub` in `context` for integrations that use custom context. ([#&open-telemetry#8203;931](https://redirect.github.com/getsentry/sentry-go/pull/931)) - Add `HubProvider` Hook for `sentrylogrus`, enabling dynamic Sentry hub allocation for each log entry or goroutine. ([#&open-telemetry#8203;936](https://redirect.github.com/getsentry/sentry-go/pull/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: ```go 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. ([#&open-telemetry#8203;894](https://redirect.github.com/getsentry/sentry-go/pull/894)) ```go 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. ```go transport := sentry.NewHTTPTransport() defer transport.Close() ``` ##### Misc - Bump [gin-gonic/gin](https://redirect.github.com/gin-gonic/gin) to v1.9.1. ([#&open-telemetry#8203;946](https://redirect.github.com/getsentry/sentry-go/pull/946)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (UTC), 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/open-telemetry/opentelemetry-collector-contrib). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44NS4wIiwidXBkYXRlZEluVmVyIjoiMzkuODUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
…pen-telemetry#37019) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/getsentry/sentry-go](https://redirect.github.com/getsentry/sentry-go) | `v0.30.0` -> `v0.31.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>getsentry/sentry-go (github.com/getsentry/sentry-go)</summary> ### [`v0.31.1`](https://redirect.github.com/getsentry/sentry-go/releases/tag/v0.31.1): 0.31.1 [Compare Source](https://redirect.github.com/getsentry/sentry-go/compare/v0.31.0...v0.31.1) 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` ([#&open-telemetry#8203;950](https://redirect.github.com/getsentry/sentry-go/pull/950)) ### [`v0.31.0`](https://redirect.github.com/getsentry/sentry-go/releases/tag/v0.31.0): 0.31.0 [Compare Source](https://redirect.github.com/getsentry/sentry-go/compare/v0.30.0...v0.31.0) ##### Breaking Changes - Remove support for metrics. Read more about the end of the Metrics beta [here](https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Metrics-Beta-Ended-on-October-7th). ([#&open-telemetry#8203;914](https://redirect.github.com/getsentry/sentry-go/pull/914)) - Remove support for profiling. ([#&open-telemetry#8203;915](https://redirect.github.com/getsentry/sentry-go/pull/915)) - Remove `Segment` field from the `User` struct. This field is no longer used in the Sentry product. ([#&open-telemetry#8203;928](https://redirect.github.com/getsentry/sentry-go/pull/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` ([#&open-telemetry#8203;919](redirect.github.com/getsentry/sentry-go/pull/919)). ##### Features Add the ability to override `hub` in `context` for integrations that use custom context. ([#&open-telemetry#8203;931](https://redirect.github.com/getsentry/sentry-go/pull/931)) - Add `HubProvider` Hook for `sentrylogrus`, enabling dynamic Sentry hub allocation for each log entry or goroutine. ([#&open-telemetry#8203;936](https://redirect.github.com/getsentry/sentry-go/pull/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: ```go 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. ([#&open-telemetry#8203;894](https://redirect.github.com/getsentry/sentry-go/pull/894)) ```go 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. ```go transport := sentry.NewHTTPTransport() defer transport.Close() ``` ##### Misc - Bump [gin-gonic/gin](https://redirect.github.com/gin-gonic/gin) to v1.9.1. ([#&open-telemetry#8203;946](https://redirect.github.com/getsentry/sentry-go/pull/946)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (UTC), 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/open-telemetry/opentelemetry-collector-contrib). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44NS4wIiwidXBkYXRlZEluVmVyIjoiMzkuODUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Closes #156