File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
sentry-opentelemetry/sentry-opentelemetry-agent Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,17 @@ application by adding the following parameters to your `java` command:
77
88` $ SENTRY_PROPERTIES_FILE=sentry.properties java -javaagent:sentry-opentelemetry-agent.jar -jar your-application.jar `
99
10+ Your ` sentry.properties ` could look like this:
11+
12+ ``` properties
13+ # NOTE: Replace the test DSN below with YOUR OWN DSN to see the events from this app in your Sentry project/dashboard
14+ dsn =https://
[email protected] /5428563
15+ traces-sample-rate =1.0
16+ ```
17+
18+ For more details on configuring Sentry via ` sentry.properties ` please see the
19+ [ docs page] ( https://docs.sentry.io/platforms/java/configuration/ ) .
20+
1021As an alternative to the ` SENTRY_PROPERTIES_FILE ` environment variable you can provide individual
1122settings as environment variables (e.g. ` SENTRY_DSN=... ` ) or you may initialize ` Sentry ` inside
1223your target application. If you do so, please make sure to set the ` instrumenter ` to ` otel ` , e.g.
You can’t perform that action at this time.
0 commit comments