Bumps github.com/getsentry/sentry-go from 0.13.0 to 0.16.0.
Release notes
Sourced from github.com/getsentry/sentry-go's releases.
0.15.0
- 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)
0.14.0
- 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.
Changelog
Sourced from github.com/getsentry/sentry-go's changelog.
0.16.0
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
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it
@dependabot merge
will merge this PR after your CI passes on it
@dependabot squash and merge
will squash and merge this PR after your CI passes on it
@dependabot cancel merge
will cancel a previously requested merge and block automerging
@dependabot reopen
will reopen this PR if it is closed
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)