Skip to content

Allow ThreadPoolTaskExecutor observability instrumentation #33021

@bclozel

Description

@bclozel

See micrometer-metrics/micrometer#3250 for background.

Micrometer allows to instrument JDK ExecutorService instances using its ExecutorServiceMetrics class. Micrometer users would like to leverage this feature for our ThreadPoolTaskExecutor, but doing so erases its Spring-specific support (like graceful shutdown) as it exposes it as a ScheduledExecutorService.

Micrometer itself cannot depend on Spring Framework for this, so we should investigate several solutions:

  • instrument ThreadPoolTaskExecutor directly (at the cost of a direct micrometer-observation dependency from spring-context
  • provide an optional wrapper/JDK proxy mechanism that instrument this class with an optional dependency on micrometer-observation

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytheme: observabilityAn issue related to observability and tracingtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions