Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module github.com/getsentry/sentry-go to v0.29.1 #288

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 18, 2024

This PR contains the following updates:

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

Release Notes

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

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

Configuration

📅 Schedule: Branch creation - "* 0-4 * * 3" (UTC), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR is behind base branch, 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.

Copy link
Contributor Author

renovate bot commented Sep 18, 2024

ℹ 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):

  • 1 additional dependency was updated

Details:

Package Change
golang.org/x/crypto v0.19.0 -> v0.21.0

@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from a7c7277 to 1a732f0 Compare October 5, 2024 11:58
@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 1a732f0 to cde1155 Compare October 13, 2024 13:35
Copy link

[puLL-Merge] - getsentry/sentry-go@otel/v0.28.1..otel/v0.29.0

Description

This PR updates the Sentry Go SDK from version 0.28.1 to 0.29.0. It includes several new features, bug fixes, and breaking changes. The main changes include the removal of the sentrymartini integration, improvements to tracing and context propagation, and various optimizations and bug fixes across different parts of the SDK.

Possible Issues

  1. The removal of the sentrymartini integration may break existing applications using this integration.
  2. Changes to the WrapResponseWriter location may require updates in projects that directly imported it from the previous package.

Security Hotspots

  1. The addition of Proxy-Authorization as a sensitive header in interfaces.go improves security by treating this header with the same care as other sensitive headers.
Changes

Changes

  1. CHANGELOG.md:

    • Added entries for version 0.29.0, detailing new features, breaking changes, and bug fixes.
  2. README.md:

    • Removed reference to the martini integration.
  3. client.go, scope.go:

    • Updated ApplyToEvent method signature to include client *Client parameter.
  4. dynamic_sampling_context.go:

    • Added new DynamicSamplingContextFromScope function.
  5. echo/sentryecho.go, fasthttp/sentryfasthttp.go, fiber/sentryfiber.go, gin/sentrygin.go, http/sentryhttp.go, iris/sentryiris.go, negroni/sentrynegroni.go:

    • Updated integration packages to use new tracing and context propagation methods.
  6. hub.go:

    • Added GetTraceparent and GetBaggage methods for improved tracing support.
  7. interfaces.go:

    • Added Proxy-Authorization to the list of sensitive headers.
  8. martini/ directory:

    • Removed the entire martini integration.
  9. propagation_context.go:

    • Added new file for handling propagation context.
  10. scope.go:

    • Added SetPropagationContext and SetSpan methods.
  11. sentry.go:

    • Updated SDK version to 0.29.0.
  12. stacktrace.go, stacktrace_go1.21.go:

    • Added support for cleaning up function name prefixes in Go 1.21+.
  13. tracing.go:

    • Added new SpanOrigin type and constants.
    • Updated Span struct with new fields and methods.
    • Added ContinueTrace function for improved tracing support.
  14. transport.go:

    • Fixed initialization of limits map in HTTPTransport and HTTPSyncTransport.

These changes significantly improve the SDK's tracing capabilities, add support for newer Go versions, and fix several bugs. The removal of the martini integration and changes to some internal structures may require updates in projects using these specific features.

@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from cde1155 to 13d505d Compare October 18, 2024 11:17
@renovate renovate bot changed the title Update module github.com/getsentry/sentry-go to v0.29.0 Update module github.com/getsentry/sentry-go to v0.29.1 Oct 18, 2024
@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 13d505d to 3d02e2c Compare October 21, 2024 10:14
@renovate renovate bot changed the title Update module github.com/getsentry/sentry-go to v0.29.1 Update module github.com/getsentry/sentry-go to v0.29.1 - autoclosed Oct 28, 2024
@renovate renovate bot closed this Oct 28, 2024
@renovate renovate bot deleted the renovate/github.com-getsentry-sentry-go-0.x branch October 28, 2024 09:06
@renovate renovate bot changed the title Update module github.com/getsentry/sentry-go to v0.29.1 - autoclosed Update module github.com/getsentry/sentry-go to v0.29.1 Oct 28, 2024
@renovate renovate bot reopened this Oct 28, 2024
@renovate renovate bot restored the renovate/github.com-getsentry-sentry-go-0.x branch October 28, 2024 12:47
@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 3d02e2c to 238a4b1 Compare October 30, 2024 12:14
@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 238a4b1 to 192c2d7 Compare October 30, 2024 12:17
@renovate renovate bot changed the title Update module github.com/getsentry/sentry-go to v0.29.1 Update module github.com/getsentry/sentry-go to v0.29.1 - autoclosed Oct 31, 2024
@renovate renovate bot closed this Oct 31, 2024
@renovate renovate bot deleted the renovate/github.com-getsentry-sentry-go-0.x branch October 31, 2024 05:00
@renovate renovate bot changed the title Update module github.com/getsentry/sentry-go to v0.29.1 - autoclosed Update module github.com/getsentry/sentry-go to v0.29.1 Oct 31, 2024
@renovate renovate bot reopened this Oct 31, 2024
@renovate renovate bot restored the renovate/github.com-getsentry-sentry-go-0.x branch October 31, 2024 07:11
Copy link

[puLL-Merge] - getsentry/sentry-go@otel/v0.28.1..otel/v0.29.1

Description

This PR updates the Sentry Go SDK from version 0.28.1 to 0.29.1. It includes various improvements, bug fixes, and new features to enhance the SDK's functionality and performance.

Possible Issues

  1. Removal of the sentrymartini integration might break existing code that relies on it.
  2. Changes to the WrapResponseWriter location may require updates in projects that directly import it.

Security Hotspots

  1. The addition of Proxy-Authorization to the list of sensitive headers in interfaces.go improves security by ensuring this potentially sensitive information is not logged.
Changes

Changes

  1. CHANGELOG.md:

    • Added entries for versions 0.29.1 and 0.29.0, detailing new features and bug fixes.
  2. README.md:

    • Removed reference to the Martini integration.
  3. go.mod and go.sum:

    • Updated dependencies, including removing github.com/go-martini/martini and updating other packages.
  4. Various files:

    • Implemented new tracing and propagation context features.
    • Added support for Go 1.23 HTTP transaction naming.
    • Improved error grouping for Go 1.21+ closure functions.
    • Enhanced dynamic sampling context handling.
    • Updated integrations (Echo, Fiber, Gin, Iris, Negroni) to use new tracing features.
  5. Removed martini directory and related files.

  6. http/sentryhttp.go and other integration files:

    • Updated to use new tracing and context propagation methods.
  7. scope.go:

    • Added new methods for handling propagation context and spans.
  8. tracing.go:

    • Added new span origins and improved tracing functionality.
  9. transport.go:

    • Fixed potential nil pointer dereference in rate limiting.
  10. Various test files:

    • Updated and added tests to cover new functionality and changes.

This PR represents a significant update to the Sentry Go SDK, improving its tracing capabilities, error handling, and integration with various web frameworks. The removal of the Martini integration and changes to some internal structures may require updates in projects using this SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants