reactivejson

Results 3 comments of reactivejson

Hey @mateuszrzeszutek We are using [Context.taskWrapping()](https://github.com/open-telemetry/opentelemetry-java/blob/main/context/src/main/java/io/opentelemetry/context/Context.java#L137) method to decorate an ExecutorService. But we are getting errors since we can't use io.opentelemetry.context.CurrentContextExecutorService with Micrometer ExecutorServiceMetrics: i.m.c.i.b.jvm.ExecutorServiceMetrics - Failed to bind as...

Thanks @mateuszrzeszutek for your reply, I will check your suggestion. One more issue we have is that we cant cast io.opentelemetry.context.CurrentContextExecutorService to ThreadPoolExecutor: java.lang.ClassCastException: class io.opentelemetry.context.CurrentContextExecutorService cannot be cast to...

> Hey @reactivejson , Can you try using micrometer first, and then wrapping with `Context.taskWrapping()`? E.g. > > ```java > Context.taskWrapping( > ExecutorServiceMetrics.monitor(meterRegistry, executorService, "myExecutor")) > ``` We are beanifying...