Skip to content

Commit eb04be9

Browse files
committed
Improve readme
1 parent 1b76167 commit eb04be9

File tree

1 file changed

+11
-0
lines changed
  • sentry-opentelemetry/sentry-opentelemetry-agent

1 file changed

+11
-0
lines changed

sentry-opentelemetry/sentry-opentelemetry-agent/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
1021
As an alternative to the `SENTRY_PROPERTIES_FILE` environment variable you can provide individual
1122
settings as environment variables (e.g. `SENTRY_DSN=...`) or you may initialize `Sentry` inside
1223
your target application. If you do so, please make sure to set the `instrumenter` to `otel`, e.g.

0 commit comments

Comments
 (0)