You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.util.concurrent.RejectedExecutionException: Task [Description] rejected from java.util.concurrent.ThreadPoolExecutor@26be92ad[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)
...
But when it's passed through wrap(), we get the default brave.propagation.CurrentTraceContext$1CurrentTraceContextRunnable@224edc67 instead of [Description].
Shouldn't the wrapper delegate to the underlying toString() implementation?
The text was updated successfully, but these errors were encountered:
When using
CurrentTraceContext.wrap()
, any customtoString()
implementation from the underlying task is lost.For example, say we have this class:
And we pass an instance to a dead executor:
The output looks like this:
But when it's passed through
wrap()
, we get the defaultbrave.propagation.CurrentTraceContext$1CurrentTraceContextRunnable@224edc67
instead of[Description]
.Shouldn't the wrapper delegate to the underlying
toString()
implementation?The text was updated successfully, but these errors were encountered: