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)
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)
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebase will rebase this MR. Deprecated, use GitLab's native /rebase instead
$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.21.0 to 0.22.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.22.0</h2>
<p>The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.22.0.</p>
<p>This release contains initial <a href="https://docs.sentry.io/product/profiling/">profiling</a> support, as well as a few bug fixes and improvements.</p>
<h3>Features</h3>
<ul>
<li>
<p>Initial (alpha) support for <a href="https://docs.sentry.io/product/profiling/">profiling</a> (<a href="https://github.com/getsentry/sentry-go/pull/626">#626</a>)</p>
<p>Profiling is disabled by default. To enable it, configure both <code>TracesSampleRate</code> and <code>ProfilesSampleRate</code> when initializing the SDK:</p>
<pre lang="go"><code>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,
})
</code></pre>
<p>More documentation on profiling and current limitations <a href="https://docs.sentry.io/platforms/go/profiling/">can be found here</a>.</p>
</li>
<li>
<p>Add transactions/tracing support go the Gin integration (<a href="https://github.com/getsentry/sentry-go/pull/644">#644</a>)</p>
</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Always set a valid source on transactions (<a href="https://github.com/getsentry/sentry-go/pull/637">#637</a>)</li>
<li>Clone scope.Context in more places to avoid panics on concurrent reads and writes (<a href="https://github.com/getsentry/sentry-go/pull/638">#638</a>)
<ul>
<li>Fixes <a href="https://github.com/getsentry/sentry-go/issues/570">#570</a></li>
</ul>
</li>
<li>Fix frames recognized as not being in-app still showing as in-app (<a href="https://github.com/getsentry/sentry-go/pull/647">#647</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.22.0</h2>
<p>The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.22.0.</p>
<p>This release contains initial <a href="https://docs.sentry.io/product/profiling/">profiling</a> support, as well as a few bug fixes and improvements.</p>
<h3>Features</h3>
<ul>
<li>
<p>Initial (alpha) support for <a href="https://docs.sentry.io/product/profiling/">profiling</a> (<a href="https://github.com/getsentry/sentry-go/pull/626">#626</a>)</p>
<p>Profiling is disabled by default. To enable it, configure both <code>TracesSampleRate</code> and <code>ProfilesSampleRate</code> when initializing the SDK:</p>
<pre lang="go"><code>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,
})
</code></pre>
<p>More documentation on profiling and current limitations <a href="https://docs.sentry.io/platforms/go/profiling/">can be found here</a>.</p>
</li>
<li>
<p>Add transactions/tracing support go the Gin integration (<a href="https://github.com/getsentry/sentry-go/pull/644">#644</a>)</p>
</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Always set a valid source on transactions (<a href="https://github.com/getsentry/sentry-go/pull/637">#637</a>)</li>
<li>Clone scope.Context in more places to avoid panics on concurrent reads and writes (<a href="https://github.com/getsentry/sentry-go/pull/638">#638</a>)
<ul>
<li>Fixes <a href="https://github.com/getsentry/sentry-go/issues/570">#570</a></li>
</ul>
</li>
<li>Fix frames recognized as not being in-app still showing as in-app (<a href="https://github.com/getsentry/sentry-go/pull/647">#647</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/getsentry/sentry-go/commit/015c71a83128f3a06e07b2ad97fa0d2afb99f78c"><code>015c71a</code></a> release: 0.22.0</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/dc695c99ba2cb49a3d5eaf021c27eedc0556e1ee"><code>dc695c9</code></a> doc: Prepare 0.22.0 release (<a href="https://github.com/getsentry/sentry-go/issues/654">#654</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/0581ede886aa56f0db92c3c86fc0c2f06ce63dfa"><code>0581ede</code></a> test: real ticker profiling in CI with a long duration (<a href="https://github.com/getsentry/sentry-go/issues/653">#653</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/513eb10f0b5832e8889eb255e99d8f4f453258bd"><code>513eb10</code></a> fix: Clone scope.Context in multiple places to avoid concurrent reads/writes ...</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/97a00a4a9d0b9170266b3d83b2199a526ab2aa74"><code>97a00a4</code></a> refactor: use client.options internally to avoid copying (<a href="https://github.com/getsentry/sentry-go/issues/651">#651</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/4a965bcedffc7577029bb281a474fcda40bbbc0f"><code>4a965bc</code></a> feat: Add initial profiling support (<a href="https://github.com/getsentry/sentry-go/issues/626">#626</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/2aacdfbac30d605532f36c98c641aaee01719593"><code>2aacdfb</code></a> feat(gin): Add transactions to Gin integration (<a href="https://github.com/getsentry/sentry-go/issues/644">#644</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/1b0b53642cd13aedf69283eee5aa01c2b339c501"><code>1b0b536</code></a> fix: stack-trace <code>in_app</code> false being omitted (<a href="https://github.com/getsentry/sentry-go/issues/647">#647</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/02e712a638c40cd9701ad52d5d1309d65d556ef9"><code>02e712a</code></a> doc(security-policy): Add a section on dependency updates (<a href="https://github.com/getsentry/sentry-go/issues/641">#641</a>)</li>
<li><a href="https://github.com/getsentry/sentry-go/commit/eec094e9470dd3855eaf47b025d853bcbc13df68"><code>eec094e</code></a> fix(tracing): Make sure a valid source is set on a transaction event (<a href="https://github.com/getsentry/sentry-go/issues/637">#637</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/getsentry/sentry-go/compare/v0.21.0...v0.22.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. Deprecated, use GitLab's native /rebase instead
- `$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.21.0 to 0.22.0.
Release notes
Sourced from github.com/getsentry/sentry-go's releases.
Changelog
Sourced from github.com/getsentry/sentry-go's changelog.
Commits
015c71arelease: 0.22.0dc695c9doc: Prepare 0.22.0 release (#654)0581edetest: real ticker profiling in CI with a long duration (#653)513eb10fix: Clone scope.Context in multiple places to avoid concurrent reads/writes ...97a00a4refactor: use client.options internally to avoid copying (#651)4a965bcfeat: Add initial profiling support (#626)2aacdfbfeat(gin): Add transactions to Gin integration (#644)1b0b536fix: stack-tracein_appfalse being omitted (#647)02e712adoc(security-policy): Add a section on dependency updates (#641)eec094efix(tracing): Make sure a valid source is set on a transaction event (#637)Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebasewill rebase this MR. Deprecated, use GitLab's native /rebase instead$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflictsCodecov Report
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more