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.24.0 #141

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 8, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
github.com/getsentry/sentry-go require minor v0.11.0 -> v0.24.0

Release Notes

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

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.

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:

    TracesSampler: func(ctx sentry.SamplingContext) float64 {
      if ctx.Span.Name == "GET /health" {
        return 0
      }
      return 1
    },
Features
  • Add Span.SetContext() method (#​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)
    • More about DebugMeta interface here.
Bug Fixes
  • [otel] Fix missing OpenTelemetry context on some events (#​599, #​605)
  • [otel] Better handling for HTTP span attributes (#​610)
Misc

v0.19.0: 0.19.0

Compare Source

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)
    • More about exception mechanisms here.
Bug Fixes
  • [otel] Use the correct "trace" context when sending a Sentry error (#​580)
Misc
  • Drop support for Go 1.17, add support for Go 1.20 (#​563)
    • According to our policy, we're officially supporting the last three minor releases of Go.
  • Switch repository license to MIT (#​583)
    • More about Sentry licensing here.
  • Bump golang.org/x/text minimum required version to 0.3.8 (#​586)

v0.18.0: 0.18.0

Compare Source

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 and various other bug fixes and improvements.

Note: This is the last release supporting Go 1.17.

Features
  • Initial support for OpenTelemetry.
    You can now send all your OpenTelemetry spans to Sentry.

    Install the otel module

    go get github.com/getsentry/sentry-go \
           github.com/getsentry/sentry-go/otel

    Configure the Sentry and OpenTelemetry SDKs

    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.

Bug Fixes
  • Do not freeze the Dynamic Sampling Context when no Sentry values are present in the baggage header (#​532)
  • Create a frozen Dynamic Sampling Context when calling span.ToBaggage() (#​566)
  • Fix baggage parsing and encoding in vendored otel package (#​568)
Misc
  • Add Span.SetDynamicSamplingContext() (#​539)
  • Add various getters for Dsn (#​540)
  • Add SpanOption::SpanSampled (#​546)
  • Add Span.SetData() (#​542)
  • Add Span.IsTransaction() (#​543)
  • Add Span.GetTransaction() method (#​558)

v0.17.0: 0.17.0

Compare Source

The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.17.0.
This release contains a new BeforeSendTransaction hook option and corrects two regressions introduced in 0.16.0.

Features
  • Add BeforeSendTransaction hook to ClientOptions (#​517)
    • Here's an example of how BeforeSendTransaction can be used to modify or drop transaction events.
Bug Fixes
  • Do not crash in Span.Finish() when the Client is empty (#​520)
  • Attach non-PII/non-sensitive request headers to events when ClientOptions.SendDefaultPii is set to false (#​524)
Misc
  • Clarify how to handle logrus.Fatalf events (#​501)
  • Rename the examples directory to _examples (#​521)
    • This removes an indirect dependency to github.com/golang-jwt/jwt

v0.16.0: 0.16.0

Compare Source

The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.16.0.
Due to ongoing work towards a stable API for v1.0.0, we sadly had to include two breaking changes in this release.

Breaking Changes
  • Add EnableTracing, a boolean option flag to enable performance monitoring (false by default).
    • If you're using TracesSampleRate or TracesSampler, this option is required to enable performance monitoring.

      sentry.Init(sentry.ClientOptions{
          EnableTracing: true,
          TracesSampleRate: 1.0,
      })
  • Unify TracesSampler #​498
    • TracesSampler was changed to a callback that must return a float64 between 0.0 and 1.0.

      For example, you can apply a sample rate of 1.0 (100%) to all /api transactions, and a sample rate of 0.5 (50%) to all other transactions.
      You can read more about this in our SDK docs.

      sentry.Init(sentry.ClientOptions{
          TracesSampler: sentry.TracesSampler(func(ctx sentry.SamplingContext) float64 {
               hub := sentry.GetHubFromContext(ctx.Span.Context())
               name := hub.Scope().Transaction()
      
               if strings.HasPrefix(name, "GET /api") {
                   return 1.0
               }
      
               return 0.5
           }),
       }
Features
  • Send errors logged with Logrus to Sentry.
  • Add support for Dynamic Sampling #​491
    • You can read more about Dynamic Sampling in our product docs.
  • Add detailed logging about the reason transactions are being dropped.
    • You can enable SDK logging via sentry.ClientOptions.Debug: true.
Bug Fixes
  • Do not clone the hub when calling StartTransaction #​505

v0.15.0: 0.15.0

Compare Source

  • fix: Scope values should not override Event values (#​446)
  • feat: Make maximum amount of spans configurable (#​460)
  • feat: Add a method to start a transaction (#​482)
  • feat: Extend User interface by adding Data, Name and Segment (#​483)
  • feat: Add ClientOptions.SendDefaultPII (#​485)

v0.14.0: 0.14.0

Compare Source

  • feat: Add function to continue from trace string (#​434)
  • feat: Add max-depth options (#​428)
  • [breaking] ref: Use a Context type mapping to a map[string]interface{} for all event contexts (#​444)
  • [breaking] ref: Replace deprecated ioutil pkg with os & io (#​454)
  • ref: Optimize stacktrace.go from size and speed (#​467)
  • ci: Test against go1.19 and go1.18, drop go1.16 and go1.15 support (#​432, #​477)
  • deps: Dependency update to fix CVEs (#​462, #​464, #​477)

NOTE: This version drops support for Go 1.16 and Go 1.15. The currently supported Go versions are the last 3 stable releases: 1.19, 1.18 and 1.17.

v0.13.0

Compare Source

  • ref: Change DSN ProjectID to be a string (#​420)
  • fix: When extracting PCs from stack frames, try the PC field (#​393)
  • build: Bump gin-gonic/gin from v1.4.0 to v1.7.7 (#​412)
  • build: Bump Go version in go.mod (#​410)
  • ci: Bump golangci-lint version in GH workflow (#​419)
  • ci: Update GraphQL config with appropriate permissions (#​417)
  • ci: ci: Add craft release automation (#​422)

v0.12.0

Compare Source

NOTE:
This version drops support for Go 1.14, however no changes have been made that would make the SDK not work with Go 1.14. The currently supported Go versions are the last 3 stable releases: 1.15, 1.16 and 1.17.
There are two behavior changes related to LastEventID, both of which were intended to align the behavior of the Sentry Go SDK with other Sentry SDKs.
The new automatic release detection feature makes it easier to use Sentry and separate events per release without requiring extra work from users. We intend to improve this functionality in a future release by utilizing information that will be available in runtime starting with Go 1.18. The tracking issue is #​401.


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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/github.com-getsentry-sentry-go-0.x branch from bee5988 to 29e6b16 Compare September 8, 2023 13:16
@johnhalbert johnhalbert merged commit 372835b into master Sep 8, 2023
4 checks passed
@johnhalbert johnhalbert deleted the renovate/github.com-getsentry-sentry-go-0.x branch September 8, 2023 14:53
johnhalbert added a commit that referenced this pull request Sep 13, 2023
* Bump gopkg.in/yaml.v3 from 3.0.0-20210107192922-496545a6307b to 3.0.0 (#133)

Bumps gopkg.in/yaml.v3 from 3.0.0-20210107192922-496545a6307b to 3.0.0.

---
updated-dependencies:
- dependency-name: gopkg.in/yaml.v3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: John Halbert <[email protected]>

* Add renovate.json (#66)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: John Halbert <[email protected]>

* Update alpine Docker tag to v3.18 (#136)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update bitnami/golang Docker tag to v1.20 (#139)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update amazon/dynamodb-local Docker tag to v1.22.0 (#138)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/aws/aws-sdk-go to v1.45.5 (#140)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/getsentry/sentry-go to v0.24.0 (#141)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/rs/zerolog to v1.30.0 (#144)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/go-redis/redis/v8 to v8.11.5 (#142)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/stretchr/testify to v1.8.4 (#145)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module google.golang.org/protobuf to v1.31.0 (#146)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update actions/checkout action to v4 (#147)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update actions/setup-go action to v4 (#148)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/prometheus/client_golang to v1.16.0 (#143)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/aws/aws-sdk-go to v1.45.6 (#153)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/go-chi/chi to v5 (#151)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/go-chi/chi to v5 (#154)

* Update module github.com/go-chi/chi to v5

* Update go.mod, go.sum

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: John Halbert <[email protected]>

* Update module github.com/go-chi/chi to v5 (#155)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/aws/aws-sdk-go to v1.45.7 (#156)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update module github.com/go-chi/chi to v5 (#157)

* Update module github.com/go-chi/chi to v5

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: John Halbert <[email protected]>

* Update module github.com/aws/aws-sdk-go to v1.45.8 (#158)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update amazon/dynamodb-local Docker tag to v2 (#149)

* Update amazon/dynamodb-local Docker tag to v2

* Update access key id & secret for local dynamo

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: John Halbert <[email protected]>

* Update module github.com/go-redis/redis/v8 to v9 (#152)

* Update module github.com/go-redis/redis/v8 to v9

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: John Halbert <[email protected]>

* Update module github.com/brave-intl/bat-go to v1 (#150)

* Update module github.com/brave-intl/bat-go to v1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: John Halbert <[email protected]>

* Update module github.com/getsentry/sentry-go to v0.24.1 (#161)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update github.com/brave-intl/bat-go/libs digest to 8b4fe85 (#160)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

1 participant