Fix Akka's and Pekko's doomsday-wildcard
config
#1403
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Caution
I am pretty pretty sure the current code is flawed
doomsday-wildcard
isoff
by default (see config).All I do now is, I set
includes
to"**"
. Now I expect thatincludes
just doesn't have any effect at all - basically like having an emptyincludes
(which is the default).So I end up with this (partially) config:
However - I do see actors getting tracked now which should not - because the
doomsday-wildcard
just does not work...Let's look at the code:
Kamon/instrumentation/kamon-pekko/src/main/scala/kamon/instrumentation/pekko/PekkoInstrumentation.scala
Lines 115 to 125 in db2c3ed
val newIncludes
always (!) ends up as string"includes = [ "**" ]"
:So you always filter out the
**
wildcard and therefore always build the string"includes = [ "**" ]"
!Afterwards you always override the provided config with
Correct would be to either use
filterNot
orfilter(_ != "**")
:IMHO it would be nice to push out a 2.7.8 release with this fix 😉
Maybe even including #1402?
Thanks!