Skip to content

Commit 091fa12

Browse files
Merge pull request #272968 from heyams/heya/add-custom-instrumentation
Add custom instrumentation
2 parents 406b03f + 3ec345f commit 091fa12

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

articles/azure-monitor/app/java-standalone-config.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,23 @@ For more information, see the [Telemetry processor](./java-standalone-telemetry-
413413
> [!NOTE]
414414
> If you want to drop specific (whole) spans for controlling ingestion cost, see [Sampling overrides](./java-standalone-sampling-overrides.md).
415415
416+
## Custom instrumentation (preview)
417+
418+
Starting from verion 3.3.1, you can capture spans for a method in your application:
419+
420+
```json
421+
{
422+
"preview": {
423+
"customInstrumentation": [
424+
{
425+
"className": "my.package.MyClass",
426+
"methodName": "myMethod"
427+
}
428+
]
429+
}
430+
}
431+
```
432+
416433
## Autocollected logging
417434

418435
Log4j, Logback, JBoss Logging, and java.util.logging are autoinstrumented. Logging performed via these logging frameworks is autocollected.

0 commit comments

Comments
 (0)