17 lines
829 B
YAML
17 lines
829 B
YAML
description: >
|
||
The executor instrumentation ensures that context is automatically propagated when using common
|
||
Java executors (e.g., ThreadPoolExecutor, ScheduledThreadPoolExecutor, ForkJoinPool). When a task
|
||
is submitted, the current context is captured and bound to the task. Then, when the task
|
||
eventually runs, even if it’s on a different thread, the instrumentation reactivates that context,
|
||
enabling consistent correlation across concurrent and asynchronous workflows.
|
||
|
||
configurations:
|
||
- name: otel.instrumentation.executors.include
|
||
description: List of Executor subclasses to be instrumented.
|
||
type: list
|
||
default: ""
|
||
- name: otel.instrumentation.executors.include-all
|
||
description: Whether to instrument all classes that implement the Executor interface.
|
||
type: boolean
|
||
default: false
|