Skip to content

Commit fe17654

Browse files
authored
link to extensions sample
1 parent b3183b8 commit fe17654

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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 druation which are captured later on can be filtered through [OpenTelemetry Java Extensions](https://opentelemetry.io/docs/languages/java/automatic/extensions/). Here is an [Extensions sample based on request duration](https://github.com/Azure-Samples/ApplicationInsights-Java-Samples/tree/main/opentelemetry-api/java-agent/TelemetryFilteredBaseOnRequestDuration).
193+
193194

194195
## Troubleshooting
195196

articles/azure-monitor/app/opentelemetry-add-modify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2087,7 +2087,7 @@ You might use the following ways to filter out telemetry before it leaves your a
20872087

20882088
### [Java](#tab/java)
20892089

2090-
See [sampling overrides](java-standalone-config.md#sampling-overrides) and [telemetry processors](java-standalone-telemetry-processors.md).
2090+
See [sampling overrides](java-standalone-config.md#sampling-overrides), [telemetry processors](java-standalone-telemetry-processors.md), and [OpenTelemetry Extensions](java-standalone-sampling-overrides.md#span-attributes-available-for-sampling).
20912091

20922092
### [Node.js](#tab/nodejs)
20932093

0 commit comments

Comments
 (0)