Skip to content

Commit 29f8d5b

Browse files
Merge pull request #272970 from heyams/heya/add-link-extensions-sample
Add link to java extensions sample
2 parents 091fa12 + ab63444 commit 29f8d5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/azure-monitor/app/java-standalone-sampling-overrides.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ with the text "exporting span".
189189

190190
>[!Note]
191191
> Only attributes set at the start of the span are available for sampling,
192-
so attributes such as `http.status_code` which are captured later on can't be used for sampling.
192+
so attributes such as `http.response.status_code` or request duration which are captured later on can be filtered through [OpenTelemetry Java extensions](https://opentelemetry.io/docs/languages/java/automatic/extensions/). Here is a [sample extension that filters spans based on request duration](https://github.com/Azure-Samples/ApplicationInsights-Java-Samples/tree/main/opentelemetry-api/java-agent/TelemetryFilteredBaseOnRequestDuration).
193+
193194

194195
## Troubleshooting
195196

0 commit comments

Comments
 (0)