Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 20 15:39
    seglo commented #1096
  • Jan 20 15:21
    seglo synchronize #1096
  • Jan 20 12:23
    ivantopo commented #1096
  • Jan 17 17:01
    seglo commented #1096
  • Jan 12 12:46
    ihostage synchronize #760
  • Jan 07 14:12
    ryanb93 opened #1097
  • Jan 07 14:05
    ivantopo commented #1096
  • Jan 05 02:44
    seglo commented #1096
  • Jan 04 10:16
    style95 commented #1089
  • Jan 03 20:56
    seglo synchronize #1096
  • Jan 03 20:40
    seglo synchronize #1096
  • Jan 03 17:51
    seglo synchronize #1096
  • Jan 01 00:31
    seglo synchronize #1096
  • Dec 30 2021 19:10
    seglo edited #1096
  • Dec 30 2021 19:09
    seglo opened #1096
  • Dec 18 2021 01:08
    jtjeferreira commented #1094
  • Dec 18 2021 01:06
    jtjeferreira commented #1094
  • Dec 16 2021 20:25
    jtjeferreira opened #1094
  • Dec 15 2021 15:10
    yarosman closed #1091
  • Dec 15 2021 15:10
    yarosman commented #1091
Thomas Jaeckle
@thjaeckle
ah, maybe instead of Instant.now() we should use Kamon.clock().instant() which provides better precision/performance?
6 replies
Dana Borinski
@dborinsk
Trying to add kamon metrics to my caffeine cache, can someone explain please the part of KamonStatCounter or give an example? i see this page in the docs Caffeine.newBuilder().recordStats(() -> new KamonStatsCounter("cache_name")).build(); but not sure i understand what is needed to be passed to the recordStats. i see it expects to get a supplier but this example isnt working so i probably miss something.
nikhilaroratgo
@nikhilaroratgo
Can Kamon instrument the play https connections? We have issue in PROD env where the heap memory increased after we deployed with https enabled. Kamon is throwing java.lang.OutOfMemoryError . I suspect that its because Kamon is not able to scrape the https connections. What is your opinion ?
Isaac Povey
@isaacpovey
Anyone know how to initialize Kamon with a play application loaded by guice. I followed the play guide but am getting these errors when trying to load it Caused by: java.lang.VerifyError: Expecting a stackmap frame at branch target 102. The application loader looks like this
class CustomApplicationLoader extends GuiceApplicationLoader { override protected def builder(context: Context): GuiceApplicationBuilder = super .builder(context) .eagerlyLoaded()
PrashantN86
@PrashantN86

I am trying to add traceability support to a play 2.8 application with Kamon and Jaeger. I followed [instructions here] (https://kamon.io/docs/latest/reporters/jaeger/) . I am able to see the startup logs for Kanela agent as well as the Jaeger reportes as follows

[info] Running the application with the Kanela agent

 _  __                _        ______
| |/ /               | |       \ \ \ \
| ' / __ _ _ __   ___| | __ _   \ \ \ \
|  < / _` | '_ \ / _ \ |/ _` |   ) ) ) )
| . \ (_| | | | |  __/ | (_| |  / / / /
|_|\_\__,_|_| |_|\___|_|\__,_| /_/_/_/

==============================
Running with Kanela, the Kamon Instrumentation Agent :: (v1.0.8)

--- (Running the application, auto-reloading is enabled) ---

[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9001

(Server started, use Enter to stop and go back to the console...)


2021-09-23 13:29:11,210 [info] [play-dev-mode-akka.actor.default-dispatcher-11] k.i.p.GuiceModule$KamonLoader - Reconfiguring Kamon with Play's Config
2021-09-23 13:29:11,211 [info] [play-dev-mode-akka.actor.default-dispatcher-11] k.i.p.GuiceModule$KamonLoader - play.core.server.AkkaHttpServerProvider
2021-09-23 13:29:11,213 [info] [play-dev-mode-akka.actor.default-dispatcher-11] k.i.p.GuiceModule$KamonLoader - 10 seconds
2021-09-23 13:29:11,573 [info] [play-dev-mode-akka.actor.default-dispatcher-11] k.j.JaegerReporter - Started the Kamon Jaeger reporter

Jaeger is started through a docker container with following command:

docker run -d --name jaeger1   -e COLLECTOR_ZIPKIN_HOST_PORT=:9411   -p 5775:5775/udp   -p 6831:6831/udp   -p 6832:6832/udp   -p 5778:5778   -p 16686:16686   -p 14268:14268   -p 14250:14250   -p 9411:9411   jaegertracing/all-in-one:1.25

None of the traces are visible when I try to access the APIs for my play application. Any configuration I am missing here?

Tommaso Schiavinotto
@Teudimundo
I'm trying to use Kamon-cassandra (v.2.2.2, kanela 1.0.11) . I'm interested in metrics, but the only one I find available at runtime is span_processing_time_seconds. Is there something I need to configure in order to get those listed in the documentation page?
Giridhar Pathak
@gpathak
hey folks... anyone know if the kanela agent works fine with the openj9 jvm?
i find that my apps has heap going up and then OOMs.
Screen Shot 2021-10-13 at 3.33.16 PM.png
the orange line there is the jvm heap.. the heap was set low.. but the container's mem utilization goes up to 1.5Gb and then OOM
does kanela store data off heap?
and how can i debug this/reduce memory usage.
my conf file:
kamon {
  prometheus {
    embedded-server {
      hostname = 0.0.0.0
      port = 9095
    }
    buckets {
      time-buckets = [
        0.25,
        0.5,
        0.75,
        1,
        2.5
      ]
      information-buckets = [
        1024,
        2048,
        4096,
      ]
    }
  }

  instrumentation {

    play {
      server.metrics.enabled = no
      http.server.tracing.enabled = no
      http.client.tracing.enabled = no
    }
  }

  modules.host-metrics.enabled = no
  modules.process-metrics.enabled = no
  modules.status-page.enabled = no
  trace {
    sampler = "never"
    span-metrics = off
    span-metric-tags {
      upstream-service = no
      parent-operation = no
    }
  }
}

kanela.modules {
  akka {
    enabled = no
  }
  akka-remote {
    enabled = no
  }
  akka-remote-sharding {
    enabled = no
  }
}
Libor Kramoliš
@liborkramolis_twitter
Hi. Is it possible to exclude selected HTTP endpoints from producing spans? For example, I would like to hide /ready operation because it is called in regular bases by K8s as readiness probe. I do not need to track such operation. Thanks.
1 reply
Sean Glover
@seglo

good day. i'm having an issue where Kamon is generating strange operation names when there exists an endpoint with more than 1 verb implementation. i'm using guardrail to generate akka-http routes from an openapi spec, and then using Kamon's akka-http server integration. i couldn't find any issues that describe a similar problem, but i thought i would see if anyone here has a pointer.

i.e. i have a GET /foo and POST /foo, an operation name of /foo/foo will be generated for the first defined endpoint from my openapi spec. the second defined endpoint operation name seems unaffected..

1 reply
Sean Glover
@seglo
i created a reproducer PR: kamon-io/Kamon#1063
Zhenhao Li
@Zhen-hao
hi, I'm new to kamon. I inherited a codebase at a client of mine which uses kamon with the datadog-api module. I assume sending metrics data via datadog-api is async and not blocking metrics update, since that's the only sensible way. But it would be nice if people with more experience with kamon can confirm that.
1 reply
Akash Nema
@akash-nema-incontact
Hi Everyone
Can someone help me with Kamon-Jaeger Integration. Jaeger is not reading the Kamon spans I have created in my app. Application details:
Scala version: 2.12.13
Jaeger Version: 2.3.1
play framework version: 2.12
akka: 2.6.10
Akash Nema
@akash-nema-incontact
I'm new to kamon. I have referred https://kamon.io/docs/latest/reporters/jaeger/
I can see the generated span traces in kamon status page but not in jaeger.
Shane
@Shailpat3Shane_twitter
I am getting this error after upgrading kamon-bundle to 2.3.1 from 2.2.1
ch.qos.logback.core.joran.spi.JoranException: Problem parsing XML document. See previously reported errors.
        at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:65)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:151)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
        at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
        at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
        at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
        at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)

Caused by: org.xml.sax.SAXParseException; systemId: jar:file:/Users/shaileshpatil/workspace/xxxx-jar!/logback.xml; lineNumber: 42; columnNumber: 2; The markup in the document following the root element must be well-formed.
        at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1243)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:324)
        at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:59)
        ... 18 more
Any help will be appreciated
Aditya Maheshwari
@adityamundra

How to get current value of a counter? For example -

Kamon
          .counter("requests.status.404")
          .withTag("Reason", "The requested resource could not be found.")
          .increment()

After calling increment how to check if the value was incremented?

Zvi Mints
@ZviMints

Hey, I'm facing an issue with the following exception:

2021-11-29 17:44:41.710 31 WARN  MacOperatingSystem:365 - Failed syctl call for process arguments (kern.procargs2), process 42643 may not exist. Error code: 22

Dependencies:

  "io.kamon" %% "kamon-core" % "2.4.1",
  "io.kamon" %% "kamon-bundle" % "2.0.6",
  "io.kamon" %% "kamon-prometheus" % "2.0.1",

I'm trying to disable these errors with the following configurations on application.conf:

kamon.modules {
  host-metrics {
    enabled = no
  }
}

But its not working, any ideas?
cc: @ivantopo (:pray:)

Mayank Srivastava
@mayanksriv
Hi @ivantopo !! I have recently implemented Kamon Instrumentation to my play application and expect to log traceIds/SpanIds/Context-keys, etc with logback. All of it is built into a docker image. But I faced very weird issue, the same image when run in a container would sometimes work properly and sometimes just skip logging traceId/spanId/context-key etc. This was fairly intermittent. On turning debug mode on for Kanela, I saw both logback and play-framework modules had order=2 and competed to be loaded. When logback loaded before play, everything worked fine but if it loaded after play that is when we noticed missing logback entries. The way I have worked around is to explicitly give different orderings to both above modules. But is that expected behaviour to have two modules compete to be loaded.
Ivan Topolnjak
@ivantopo
@/all hey folks, this is a reminder that the official Kamon folks are now giving support on Discord and not checking this room at all. Still some other folks from the community might help here, but if you want to ensure we take a look at your question please drop it on Discord or Github. Thanks!