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.30.0 #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.30.0 age adoption passing confidence

Release Notes

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

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

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 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 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 2 times, most recently 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
@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 Nov 12, 2024
@renovate renovate bot closed this Nov 12, 2024
@renovate renovate bot deleted the renovate/github.com-getsentry-sentry-go-0.x branch November 12, 2024 22:13
@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 Nov 13, 2024
@renovate renovate bot reopened this Nov 13, 2024
@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 943303b to 192c2d7 Compare November 13, 2024 01:57
@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 Nov 20, 2024
@renovate renovate bot closed this Nov 20, 2024
@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 Nov 27, 2024
@renovate renovate bot reopened this Nov 27, 2024
@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 Dec 3, 2024
@renovate renovate bot closed this Dec 3, 2024
@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 Dec 4, 2024
@renovate renovate bot reopened this Dec 4, 2024
Copy link

github-actions bot commented Dec 4, 2024

[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 several new features, bug fixes, and improvements to the SDK's functionality.

Changes

Changes

  1. Version Update:

    • Updated SDK version from 0.28.1 to 0.29.1 in sentry.go.
  2. Workflow Updates:

    • Updated golangci-lint-action and codecov-action versions in GitHub workflows.
    • Updated Go versions in the test matrix, adding Go 1.23.
  3. Dependency Updates:

    • Removed martini dependency and related code.
    • Updated negroni to v3.
  4. New Features:

    • Added support for continuing traces and propagating tracing headers for error-only use cases.
    • Introduced new methods GetTraceparent() and GetBaggage() in the Hub struct.
    • Added support for Go 1.23's http.Request.Pattern for HTTP transaction names.
  5. Bug Fixes:

    • Fixed issue with sentry.StartTransaction() returning a transaction with an outdated context.
    • Added support for the http.Hijacker interface in the sentrynegroni package.
    • Fixed closure functions name grouping for Go version >= 1.21.
  6. Security Improvements:

    • Added Proxy-Authorization to the list of sensitive headers.
  7. Code Refactoring:

    • Moved WrapResponseWriter from sentryhttp package to internal/httputils package.
    • Introduced new PropagationContext struct and related functions.
    • Refactored various integration packages (echo, fasthttp, fiber, gin, iris, negroni) to use the new tracing methods.
  8. Documentation:

    • Updated CHANGELOG.md with details of changes in versions 0.29.0 and 0.29.1.
    • Removed martini-related documentation.
sequenceDiagram
    participant Client as Sentry Client
    participant Hub as Sentry Hub
    participant Scope as Scope
    participant Span as Span
    participant Transport as Transport

    Client->>Hub: Initialize
    Hub->>Scope: Create
    Hub->>Transport: Configure

    Note over Client,Transport: Request Handling
    Client->>Hub: CaptureEvent
    Hub->>Scope: ApplyToEvent
    Scope->>Span: GetTraceparent
    Scope->>Span: GetBaggage
    Hub->>Transport: SendEvent

    Note over Client,Transport: Tracing
    Client->>Hub: StartTransaction
    Hub->>Span: Create
    Span->>Scope: SetSpan
    Client->>Hub: CaptureMessage
    Hub->>Scope: ApplyToEvent
    Scope->>Span: GetTraceparent
    Hub->>Transport: SendEvent
Loading

Possible Issues

  • The removal of the martini integration might affect users who were relying on it.
  • Changes to the Scope struct and its methods might require users to update their custom implementations.

Security Hotspots

No significant security vulnerabilities were introduced in this change.

@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from 192c2d7 to e9e85ec Compare December 7, 2024 17: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.30.0 Dec 7, 2024
@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from e9e85ec to a46cc74 Compare December 12, 2024 20:12
Copy link

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

Description

This PR introduces significant changes to the Sentry Go SDK, including new integrations, updated dependencies, and improved error handling. The main motivations appear to be adding support for newer Go versions, introducing new logging integrations, and enhancing the SDK's functionality.

Possible Issues

  1. Dropping support for older Go versions (1.18, 1.19, 1.20) may cause compatibility issues for projects using these versions.
  2. Changes to the Scope and Hub structures might affect existing implementations that directly interact with these components.

Security Hotspots

  1. The addition of new integrations (slog, zerolog) should be carefully reviewed to ensure they don't introduce any unexpected security vulnerabilities.
  2. Changes to error handling and event processing should be thoroughly tested to prevent any potential information leakage or mishandling of sensitive data.
Changes

Changes

  1. .craft.yml: Added new GitHub targets for slog and zerolog.
  2. .github/workflows/lint.yml and .github/workflows/test.yml: Updated Go version and GitHub action versions.
  3. CHANGELOG.md: Added entries for versions 0.30.0, 0.29.1, and 0.29.0 with new features and bug fixes.
  4. Makefile: Updated Go module management commands.
  5. README.md: Updated supported integrations list.
  6. Added new integrations: slog and zerolog.
  7. Removed martini integration.
  8. Updated existing integrations (echo, fasthttp, fiber, gin, iris, negroni) with improvements and bug fixes.
  9. client.go, hub.go, scope.go: Significant changes to core functionality, including new methods and updated event processing.
  10. dynamic_sampling_context.go: Added new functionality for dynamic sampling context.
  11. interfaces.go: Updated event processing and added new fields.
  12. metrics.go: Optimized slice sorting.
  13. profiler.go: Updated to use binary.AppendUvarint.
  14. propagation_context.go: Added new file for handling propagation context.
  15. stacktrace.go: Updated stack trace handling and function name cleanup.
  16. tracing.go: Added new span origins and updated tracing functionality.
  17. transport.go: Improved error handling and rate limiting.
sequenceDiagram
    participant Client
    participant Hub
    participant Scope
    participant Event
    participant Transport

    Client->>Hub: Create new hub
    Hub->>Scope: Create new scope
    Client->>Hub: CaptureEvent
    Hub->>Scope: ApplyToEvent
    Scope->>Event: Add context and data
    Hub->>Transport: Send event
    Transport-->>Hub: Confirm sent
    Hub-->>Client: Return event ID
Loading

@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from a46cc74 to df8526b Compare December 12, 2024 20:29
@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from df8526b to c272c3a Compare December 12, 2024 20:30
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