Skip to content

Commit 1342e89

Browse files
authored
docs(java): Add sampling note to OTLP setup (#16555)
## Summary - Follow-up to #16551 - Documents that the Sentry OTLP propagator inherits the sampling decision from the incoming `sentry-trace` header, defaulting to sampled when no flag is present - Adds a warning that customers may need a custom OTel `Sampler` to control sampling for deferred traces ## Test plan - [ ] Verify page renders correctly on the docs site 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent d4c5834 commit 1342e89

File tree

1 file changed

+11
-1
lines changed
  • docs/platforms/java/common/opentelemetry/setup

1 file changed

+11
-1
lines changed

docs/platforms/java/common/opentelemetry/setup/otlp.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,14 @@ public class SentryConfig {
120120
}
121121
```
122122

123-
</PlatformSection>
123+
</PlatformSection>
124+
125+
## Sampling
126+
127+
The Sentry propagator inherits the sampling decision from the incoming `sentry-trace` header. When no sampling flag is present (deferred decision), it defaults to sampled.
128+
129+
<Alert level="warning" title="Deferred Sampling">
130+
131+
If you need to control sampling for deferred traces, you have to implement a custom OpenTelemetry `Sampler`.
132+
133+
</Alert>

0 commit comments

Comments
 (0)