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.
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.
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebase will rebase this MR
$dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) from 0.14.0 to 0.16.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/getsentry/sentry-go/releases">github.com/getsentry/sentry-go's releases</a>.</em></p>
<blockquote>
<h2>0.15.0</h2>
<ul>
<li>fix: Scope values should not override Event values (<a href="https://github.com/getsentry/sentry-go/issues/446">#446</a>)</li>
<li>feat: Make maximum amount of spans configurable (<a href="https://github.com/getsentry/sentry-go/issues/460">#460</a>)</li>
<li>feat: Add a method to start a transaction (<a href="https://github.com/getsentry/sentry-go/issues/482">#482</a>)</li>
<li>feat: Extend User interface by adding Data, Name and Segment (<a href="https://github.com/getsentry/sentry-go/issues/483">#483</a>)</li>
<li>feat: Add ClientOptions.SendDefaultPII (<a href="https://github.com/getsentry/sentry-go/issues/485">#485</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md">github.com/getsentry/sentry-go's changelog</a>.</em></p>
<blockquote>
<h2>0.16.0</h2>
<p>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 <code>v1.0.0</code>, we sadly had to include <strong>two breaking changes</strong> in this release.</p>
<h3>Breaking Changes</h3>
<ul>
<li>Add <code>EnableTracing</code>, a boolean option flag to enable performance monitoring (<code>false</code> by default).
<ul>
<li>
<p>If you're using <code>TracesSampleRate</code> or <code>TracesSampler</code>, this option is <strong>required</strong> to enable performance monitoring.</p>
<pre lang="go"><code>sentry.Init(sentry.ClientOptions{
EnableTracing: true,
TracesSampleRate: 1.0,
})
</code></pre>
</li>
</ul>
</li>
<li>Unify TracesSampler <a href="https://github.com/getsentry/sentry-go/pull/498">#498</a>
<ul>
<li>
<p><code>TracesSampler</code> was changed to a callback that must return a <code>float64</code> between <code>0.0</code> and <code>1.0</code>.</p>
<p>For example, you can apply a sample rate of <code>1.0</code> (100%) to all <code>/api</code> transactions, and a sample rate of <code>0.5</code> (50%) to all other transactions.
You can read more about this in our <a href="https://docs.sentry.io/platforms/go/configuration/filtering/#using-sampling-to-filter-transaction-events">SDK docs</a>.</p>
<pre lang="go"><code>sentry.Init(sentry.ClientOptions{
TracesSampler: sentry.TracesSampler(func(ctx sentry.SamplingContext) float64 {
hub := sentry.GetHubFromContext(ctx.Span.Context())
name := hub.Scope().Transaction()
<pre><code> if strings.HasPrefix(name, &quot;GET /api&quot;) {
return 1.0
}
return 0.5
}),
</code></pre>
<p>}
</code></pre></p>
</li>
</ul>
</li>
</ul>
<h3>Features</h3>
<ul>
<li>Send errors logged with <a href="https://github.com/sirupsen/logrus">Logrus</a> to Sentry.
<ul>
<li>Have a look at our <a href="https://github.com/getsentry/sentry-go/blob/master/example/logrus/main.go">logrus examples</a> on how to use the integration.</li>
</ul>
</li>
<li>Add support for Dynamic Sampling <a href="https://github.com/getsentry/sentry-go/pull/491">#491</a>
<ul>
<li>You can read more about Dynamic Sampling in our <a href="https://docs.sentry.io/product/data-management-settings/dynamic-sampling/">product docs</a>.</li>
</ul>
</li>
<li>Add detailed logging about the reason transactions are being dropped.
<ul>
<li>You can enable SDK logging via <code>sentry.ClientOptions.Debug: true</code>.</li>
</ul>
</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>Do not clone the hub when calling <code>StartTransaction</code> <a href="https://github.com/getsentry/sentry-go/pull/505">#505</a>
<ul>
<li>Fixes <a href="https://github.com/getsentry/sentry-go/issues/502">#502</a></li>
</ul>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/getsentry/sentry-go/commit/1602d6caf0e7e591355d17a846b79fd7ef94a12a"><code>1602d6c</code></a> release: 0.16.0</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/5b9117b1368c177ff4c16b1e3fcf295d17ade1f0"><code>5b9117b</code></a> Prepare 0.16.0 (<a href="https://github.com/getsentry/sentry-go/issues/509">#509</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/1c273b29931b60b5cfde4a36970c23b8dd54bfe9"><code>1c273b2</code></a> Create an empty DSC in case there is no baggage header (<a href="https://github.com/getsentry/sentry-go/issues/510">#510</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/c63acf9745fa0a018e3a4a53a7d677ceebdaacc7"><code>c63acf9</code></a> feat: Add support for Dynamic Sampling (<a href="https://github.com/getsentry/sentry-go/issues/491">#491</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/5dbb801bac766bc8338d00bc3c43b45c5ec50f95"><code>5dbb801</code></a> fix: Do not clone the hub inside StartTransaction (<a href="https://github.com/getsentry/sentry-go/issues/505">#505</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/c5a9734b7c2d502db91a5d3e4eb5859dedc331b9"><code>c5a9734</code></a> ref: Unify TracesSampler (<a href="https://github.com/getsentry/sentry-go/issues/498">#498</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/014331ce1b8d0cf39816bdb234c4e7d1de323a14"><code>014331c</code></a> Update README.md (<a href="https://github.com/getsentry/sentry-go/issues/504">#504</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/b31dec1f53a6e0b4b51a6a905793675223828d56"><code>b31dec1</code></a> Add logrus support (<a href="https://github.com/getsentry/sentry-go/issues/471">#471</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/4880d1d8bfe7664d8b5219729c405b13dd108b3f"><code>4880d1d</code></a> docs: Update changelog (<a href="https://github.com/getsentry/sentry-go/issues/495">#495</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/46b93cff79da408aedeeea6db6a1dd2401b942cd"><code>46b93cf</code></a> Merge branch 'release/0.15.0'</li>
<li>Additional commits viewable in <a href="https://github.com/getsentry/sentry-go/compare/v0.14.0...v0.16.0">compare view</a></li>
</ul>
</details>
<br />
---
<details>
<summary>Dependabot commands</summary>
<br />
You can trigger Dependabot actions by commenting on this MR
- `$dependabot rebase` will rebase this MR
- `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts
</details>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps github.com/getsentry/sentry-go from 0.14.0 to 0.16.0.
Release notes
Sourced from github.com/getsentry/sentry-go's releases.
Changelog
Sourced from github.com/getsentry/sentry-go's changelog.
... (truncated)
Commits
1602d6crelease: 0.16.05b9117bPrepare 0.16.0 (#509)1c273b2Create an empty DSC in case there is no baggage header (#510)c63acf9feat: Add support for Dynamic Sampling (#491)5dbb801fix: Do not clone the hub inside StartTransaction (#505)c5a9734ref: Unify TracesSampler (#498)014331cUpdate README.md (#504)b31dec1Add logrus support (#471)4880d1ddocs: Update changelog (#495)46b93cfMerge branch 'release/0.15.0'Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebasewill rebase this MR$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflictsadded 2 commits
93162e03- 1 commit from branchmainCompare with previous version
added 2 commits
658305e6- 1 commit from branchmainCompare with previous version
added 2 commits
27c78d80- 1 commit from branchmainc5e43bd0- chore(deps): bump github.com/getsentry/sentry-go from 0.14.0 to 0.16.0Compare with previous version
added 1 commit
577ad601- feat: add Sentry setupCompare with previous version