Comments (5)
@Symbianx I totally agree with you that Kamon shouldn't be generating these Spans out of the box. I'll look into this and let you know when there is something to test
from kamon.
Hey @Symbianx, this is definitely not intended to happen! Did you manage to pinpoint is any of the intermediate versions brings up this problem?
Also, can you please share your kamon-related settings? This looks as if a trace got started in a Scheduler thread and then it keeps growing as ticks get sent and generate spans, but I've never seen this happening before.
Pay special attention to this setting: https://github.com/kamon-io/Kamon/blob/master/instrumentation/kamon-akka/src/common/resources/reference.conf#L92-L95 and ensure the actors generating these spans are not there.
Also, could you share what is the first Span in this trace?
from kamon.
Hey @ivantopo , thanks for getting back to me. We did try updating kamon before the 2.6.0 release and had the same issue so it must be one of the releases before it.
The trace starts as part of an HTTP Post so not a scheduler thread :/
We use a pretty much default kamon config:
kamon.environment.service = ${?OTEL_SERVICE_NAME}
kamon.instrumentation.kafka.client.tracing.propagator = "w3c"
kamon.instrumentation.logback.mdc.copy {
entries = ["REDACTED", "REDACTED", "REDACTED"]
}
kamon.trace {
sampler = "always"
identifier-scheme = double
}
kamon.propagation.http.default.entries {
incoming {
span = "w3c"
}
outgoing {
span = "w3c"
}
}
kanela.modules.annotation {
within += "taxonomy.*"
}
kamon.prometheus {
embedded-server {
hostname = 0.0.0.0
port = 9095
}
}
And the trace just before it starts with the ticks:
from kamon.
My guess is that v2.5.0 is the one bringing out this problem for you, because that's the one including support for context propagation in the Akka Scheduler.
Could you please very that v2.5.0 is the one bringing you the problems? And, do you have any scheduler-related calls on your codebase while handling that HTTP endpoint that starts the trace?
from kamon.
Yes, 2.5.0 is the version that brings the problems.
We don't use the scheduler directly, so we did some more deep investigation into the Actor system and determined this is caused by the Automatic Passivation of entities.
By default, Akka uses a Idle entity passivation strateggy which seems to use the scheduler to keeep track of which entities are idle.
We switched to the recommended Active Entity Limit strategy, which does not generate the PassivateIntervalTick
spans anymore so I guess that's the workaround for this issue.
I think it is still undesirable to get so many spans from Kamon while running with the default strategy. What are your thoughts on this?
from kamon.
Related Issues (20)
- Akka app hangs when guardian actor failed and APM reporter is disabled HOT 1
- Kamon 2.6.0 double initialization on Lagom HOT 8
- Kamon context propogation issue between spring filter and controller
- kamon-datadog does not compatible with `okhttp3:4.x` HOT 2
- Kamon crashes when it's disabled and Kanela loads logback module HOT 1
- Logback AsyncAppender does not log context details
- Strange count of HTTP server active requests when timeouts
- Include the user agent in the http server spans
- NullPointerException on the Kafka Consumer instrumentation
- EOFException logged on the Datadog Spans reporter
- Automatic instrumentation for Scala's global execution context
- Issue with Caffeine integration HOT 4
- Possible bug: ClassCastException HOT 4
- Eviction warnings for OkHttp due to kamon-prometheus vs. kamon-zipkin HOT 2
- Trace reporting not working when setting reporter-queue-size to any value different than the default.
- Spring instrumentation fails with spring-boot 3 / spring 6 HOT 1
- Kafka instrumentation. Add supporting for different context type propagation HOT 1
- Kamon-Cassandra Datastax OSS Metrics Factory
- kamon.io, kanela agent unable to post metrics to https enabled graphite backend
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kamon.