-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Shana Matthews <shana.l.matthews@gmail.com> Co-authored-by: vivianyentran <20403606+vivianyentran@users.noreply.github.com> Co-authored-by: Anton Ovchinnikov <anton@tonyo.info>
- Loading branch information
1 parent
858dedb
commit 4839925
Showing
7 changed files
with
122 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Go | ||
doc_link: https://docs.sentry.io/platforms/go/profiling/ | ||
support_level: alpha | ||
type: language | ||
--- | ||
|
||
<div class='alert warning'> | ||
Profiling in Go is currently in alpha, and there may be some bugs. We recognize the irony. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Go | ||
doc_link: https://docs.sentry.io/platforms/go/profiling/ | ||
support_level: alpha | ||
type: language | ||
--- | ||
|
||
#### Install | ||
|
||
For the Profiling integration to work, you must have the Sentry Go SDK module (minimum version v0.22.0). Learn more about installation methods in our [full documentation](https://docs.sentry.io/platforms/go/#install). |
19 changes: 19 additions & 0 deletions
19
src/wizard/go/profiling-onboarding/go/2.configure-performance.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Go | ||
doc_link: https://docs.sentry.io/platforms/go/profiling/ | ||
support_level: alpha | ||
type: language | ||
--- | ||
|
||
#### Configure Performance | ||
|
||
Sentry’s performance monitoring product has to be enabled in order for Profiling to work. To enable performance monitoring in the SDK: | ||
|
||
```go | ||
err := sentry.Init(sentry.ClientOptions{ | ||
Dsn: "___PUBLIC_DSN___", | ||
EnableTracing: true, | ||
// We recommend adjusting this value in production: | ||
TracesSampleRate: 1.0, | ||
}) | ||
``` |
21 changes: 21 additions & 0 deletions
21
src/wizard/go/profiling-onboarding/go/3.configure-profiling.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: Go | ||
doc_link: https://docs.sentry.io/platforms/go/profiling/ | ||
support_level: alpha | ||
type: language | ||
--- | ||
|
||
#### Configure Profiling | ||
|
||
Add the `ProfilesSampleRate` option to your SDK config. | ||
|
||
```go | ||
err := sentry.Init(sentry.ClientOptions{ | ||
Dsn: "___PUBLIC_DSN___", | ||
EnableTracing: true, | ||
// We recommend adjusting these values in production: | ||
TracesSampleRate: 1.0, | ||
// The sampling rate for profiling is relative to TracesSampleRate: | ||
ProfilesSampleRate: 1.0, | ||
}) | ||
``` |
4839925
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sentry-docs – ./
sentry-docs-git-master.sentry.dev
docs.sentry.io
sentry-docs.sentry.dev