Giter VIP home page Giter VIP logo

Comments (5)

ivantopo avatar ivantopo commented on July 23, 2024 1

@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.

ivantopo avatar ivantopo commented on July 23, 2024

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.

Symbianx avatar Symbianx commented on July 23, 2024

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:
image

from kamon.

ivantopo avatar ivantopo commented on July 23, 2024

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.

Symbianx avatar Symbianx commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.