Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:00
    pnerg commented #1067
  • 11:00
    pnerg closed #1067
  • 09:46
    ivantopo commented #1067
  • 09:02
    pnerg opened #1067
  • Oct 26 18:48
    ihostage synchronize #760
  • Oct 26 18:46
    ihostage synchronize #760
  • Oct 26 12:47
    nvollmar closed #1066
  • Oct 26 12:47
    nvollmar commented #1066
  • Oct 26 12:44
    nvollmar commented #1066
  • Oct 26 12:33
    ivantopo commented #1066
  • Oct 26 12:28
    nvollmar commented #1066
  • Oct 26 12:28
    nvollmar commented #1066
  • Oct 26 12:07
    nvollmar commented #1066
  • Oct 26 11:59
    ivantopo commented #1066
  • Oct 26 11:40
    nvollmar opened #1066
  • Oct 26 06:43

    ivantopo on master

    run release actions on our self… (compare)

  • Oct 26 06:05

    ivantopo on v2.3.1

    (compare)

  • Oct 26 06:00

    ivantopo on master

    Ensure scheduler startup in Pla… (compare)

  • Oct 26 06:00
    ivantopo closed #1065
  • Oct 25 15:47
    ivantopo edited #1065
Pooriya-Shokri
@Pooriya-Shokri
Hi all,
I've enabled zipkin tracing by the code snippet below in one of my actors.
The actor receives messages from Akka streams socket, so I had to create context and span by myself.
While tracing looks fine in development mode, weird traces are seen in production. As you can see in following pictures, there are traces with hundreds of spans, while my app only consists of some simple actors with no circular message passing. I guess it's a problem of trace-id generation but no evidence on that. Any help appreciated.
1 reply
Screenshot from 2021-05-23 08-54-59.png
MicrosoftTeams-image (1).png
MicrosoftTeams-image.png
alexander-branevskiy
@alexander-branevskiy
any updates here ? kamon-io/Kamon#829
@SimunKaracic you told that someone is working on it
3 replies
Srepfler Srdan
@schrepfler
I'm getting this error on kanela startup, do we need to add some dependencies next to kanela?
Please remove -javaagent from your startup arguments and contact Kanela support.: java.lang.NoClassDefFoundError: redis/clients/jedis/commands/ProtocolCommand
3 replies
schrepfler
@schrepfler:matrix.org
[m]
no worries! is setting the API key mandatory? the docs all seem to have it and I'd be happy with status-page+prometheus+zipkin/jaeger
9 replies
Diego Parra
@dpsoft
Hi all, we just published Kanela 1.0.10 with support for Java 16 and other goodies https://github.com/kamon-io/kanela/releases/tag/v1.0.10
5 replies
jamespass
@jamespass
Hello all, I am currently removing instruments from Kamon using .remove() but after some time I am still seeing the the metric on my applications metric endpoint and subsequently Prometheus. Is there a way to have the metric removed from the metrics endpoint instantly? Thanks
1 reply
Dinesh Narayanan
@ndchandar

Hello,
I am having Context propagation issues when switching between Cats Effect IO and Scala Futures with the newer version (2.2.0). I don't see issues with Cats Effect IO + Default Scala global execution context.

When using Akka Dispatchers I seem to be losing context. Sharing minimal example https://gist.github.com/ndchandar/0c54f348a72308d3abb1741f311c650c
Appreciate your help on this.

1 reply
ramyareddy
@ramyareddy:matrix.org
[m]
1 reply
Hello everyone. I'm experimenting with Kamon 2.0, akka-http/akka and integration with Prometheus. I am not sure why I am getting this error "expected equal, got "INVALID" and showing end point is down Standalone Prometheus instance scraping metrics endpoint shows tartget as down due to this error: expected equal, got "INVALID"
Dominik Guggemos
@dguggemos
Hi, I'm trying out Kamon traces in combination with the W3C context propagation. In my very basic example (create a span, propagate it via W3C context an recreate it, create child span from it) I'm loosing the association to the parent span because when the W3C context is written, the id of the parent span is used instead of the id of the current span itself (see https://github.com/kamon-io/Kamon/blob/master/core/kamon-core/src/main/scala/kamon/trace/SpanPropagation.scala#L110). Is this correct and I misunderstand the concept here?
17 replies
Krisztian Lachata
@lachatak
Hi, good morning. I try to use kamon-datadog in 1 of our services in k8s. I configured it to use module agent and tracer pointing to our datadog agent running on all nodes. I see in the log that Kamon Datadog modules are started however nothing is really sent to the target. I tried to add a fake endpoint only for logging to see what is sent to the target but no data is sent at all. Can you help me to understand what might be the problem. No error, no logs even in TRACE level. Thank you
68 replies
imRentable
@imRentable

Hi, I recently started using kamon-prometheus and noticed that a counter metric always yielded 0 when querying it via the increase or rate function of PromQL. The reason for this was that the corresponding Kamon counter has been initialised just right before incrementing it. Therefore, no initial counter value of 0 has been exported. So I did some research and stumbled across this part of the Prometheus documentation: https://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics
It recommends to initialise all metrics before using them. I'd like to do this but it seems very tedious/unrealistic to do it manually by calling every metric with every possible label combination at the start of my application. So, I wonder, is there some utility or configuration for kamon-prometheus that initializes all the metrics (or rather series) automatically so that initial values are exported?

Thx in advance!

5 replies
schrepfler
@schrepfler:matrix.org
[m]
I've noticed this Exception on application start when Kamon is instrumenting the kafka consumer, is this relevant/critical/known?
competitions-service-54cf8bf698-kb2pv competitions-service [application-akka.kafka.default-dispatcher-19] ERROR 2021-06-22 23:55:05  Logger : Error => org.apache.kafka.clients.consumer.KafkaConsumer with message Cannot locate field named groupId for class org.apache.kafka.clients.consumer.KafkaConsumer. Class loader: jdk.internal.loader.ClassLoaders$AppClassLoader@9e89d68: java.lang.IllegalStateException: Cannot locate field named groupId for class org.apache.kafka.clients.consumer.KafkaConsumer
5 replies
schrepfler
@schrepfler:matrix.org
[m]
When using Kamon with Lagom, as we don't control the topics directly, will Kamon know how to add the metadata on the topic
1 reply
Igmar Palsenberg
@igmar
Can I somehow find out why Kamon doesn't export certain metrics ?
1 reply
I know the timer gets started / stopped, but no export. Or sometime it is , sometimes it isn't.
Ben Iofel
@benwaffle
Anybody here have experience using the Datadog Java agent? Seems like we're being forced to switch to it from Kamon because Kamon's metrics count as custom (paid/limited) but Datadog's metrics count as built-in (free) for the same data (e.g. JVM GC count).
4 replies
Nitay Kufert
@nitayk
Hey, trying to upgrade kamon to 2.2.1 and getting this on services that are trying to connect to MySQL:
class com.mysql.jdbc.StatementImpl cannot be cast to class kamon.instrumentation.jdbc.HasDatabaseTags (com.mysql.jdbc.StatementImpl and kamon.instrumentation.jdbc.HasDatabaseTags are in unnamed module of loader 'app')
19 replies
Pankaj
@pankajb23

Hey guys,
we tried kamon-bundle 2.2.0 with scala/ guice/kafka application with proper tracing enabled in logback and also included JavaAgent .enablePlugins(PlayScala, JavaAgent, JavaAppPackaging) in build.sbt
but our trace/span sporadically appears/disappears for the application.

[warn][2021-07-01_14:04:07.083] [undefined|undefined] o.a.k.c.NetworkClient

any pointer people what we might be missing here

5 replies
shataya
@shataya
Hi, is it possible to exclude certain URLs from the Akka HTTP/Play tracing? We are using akka cluster bootstrap and there are many many traces with "/bootstrap/seed-nodes"
1 reply
sfsmicm
@sfsmicm
Hi all! I'm using hikaricp and in kamon-apm i can see thousands of calls from hikaricp to 2 operations "isValid" and "execute" - i assume its the validation of the jdbc connection prior a lease. I cannot find a hint in the kamon-jdbc doc about filtering this. Can somebody drop me a hint or point me to a documentation about this?
16 replies
Aditya Maheshwari
@adityamundra
Hi all, I am using kamon for tracing my akka-http requests. It is passing traceid and working fine when I use connection pool api - Http().singleRequest() but it's not passing traceid for connection level api Http(system).outgoingConnection() streaming api. Any idea how to pass the traceids using kamon for streaming connection level api?
5 replies
sfsmicm
@sfsmicm
How do you handle instance-identification (kamon.environment.service) when using akka cluster with e.g. 3 nodes? Do you use an index or just use the same service-name for every instance?
5 replies
Dima Golomozy
@DimaGolomozy

migrating from kamon 1.0 to 2.1
what happen to the filters? I want to filter out all metrics that not start with my prefix
in 1.0 did it with

filter {
includes = [
"MyPrefix.*"
]
}

in 2.1 its impossible?

3 replies
joel-apollo
@joel-apollo
Anyone have pointers where to look for Scala Futures with the wrong units when using Kamon with Play and DataDog? We're seeing a ton of errors like this and durations of 3 months or so...
Failed to record value [8784530422484846] on [span.elapsed-time,{operation=aws-s3.putObject,span.kind=internal,parentOperation=/v4/apiendpoint,error=false,component=scala.future}] because the value is outside of the configured range. The recorded value was adjusted to the highest trackable value [3600000000000]. You might need to change your dynamic range configuration for this metric
joel-apollo
@joel-apollo
Never mind, I think I found it
6 replies
Dima Golomozy
@DimaGolomozy
anyone have idea why when im using native-packager and adding Kanela in the javaAgents, it looks like all the properties in the conf file are ignored. for example, i've put
kanela.modules.akka.enabled = false
but i still see akka metrics
3 replies
schrepfler
@schrepfler:matrix.org
[m]
does Kamon work for Spring WebFlux endpoints?
1 reply
and same question for Reactor Kafka
Is it on the roadmap/in flight?
1 reply
Ivan Topolnjak
@ivantopo
@/all hey people! I wanted to give Discord a try and created a server here: https://discord.gg/5JuYsDJ7au :smile: I'm going to be hanging out for a few weeks and see how it turns out. You are welcome to join!
Krisztian Lachata
@lachatak
Hi. I have a question. I enabled kamon status page. I clearly see that there is a metric called jvm.memory.used. I use influx and datadog reporter (via agent). JVM Metric is available in influx, I can query in grafana but when I query it in datadog my service does not appear. Many other metrics work fine but I do not understand what is the case with this one. Can somebody help me how can figure out what is going on here? I try to migrate to datadog from influx/grafana. thank you
5 replies
Ben Fradet
@BenFradet
Hello I'm upgrading from "kamon-play-2.6" % "1.1.3" to kamon 2, so I have a "kamon-bundle" % "2.2.2" dependency as well as a addSbtPlugin("io.kamon" % "sbt-kanela-runner-play-2.8" % "2.0.9") sbt plugin.
However when launching the app, I run into java.lang.NoSuchMethodError: kamon.Kamon$.withContext any ideas how I can fix this?
3 replies
boriska-ta
@boriska-ta
Hi, I am new to Kamon, and I am trying to create nested scopes and/or spans - I need to timestmap and trace the executions of rather complicated requests, which are dispatched thorugh the chain of actors. In particular, I'd like to create nested scope befroe ending message to actor, and close scope after message is processed. Or, I would like to create nested scope when running spawining child operation (which can spawn nested scopes as well). I ma not very clear waht is the proper way to do that.
All exmaples in Kamon documentation imply that span finishes in the same block where it started, and there is very little information about Scope. My understanding, while I can get currentContext and currentSpan, there is no way to get current scope, so I'd have to sotre it in e.g dynamicVariable to close it when I need it.
Can you suggest waht is the proepr way to create nested spans and nested scopes and properly finish/close them - sometiems in different module that the one it started ?
Another question - if I need to obtain e.g request id for request which took longest time - how do I store this request id, via mark ? And how to see this mark in e.g. Datadog ?
6 replies
Linh Mai
@dl-mai

hi there

kamon.context.codecs.string-keys {
  request-id = "X-Request-ID"
}

seems to be deprectaded in kamon 2. is there an aquivalient

4 replies
jinghanx
@jinghanx
Hi, new to Kamon and I'm running into issue w/ reporting tracing to datadog, once in a while
2021-07-27 13:42:37 ERROR ModuleRegistry:218 - Reporter [DatadogSpanReporter] failed to process a spans tick. java.io.EOFException: \n not found: limit=0 content=… at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:332) ~[okio-jvm-2.8.0.jar:?] at okhttp3.internal.http1.HeadersReader.readLine(HeadersReader.kt:29) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:178) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:106) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:79) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.0.jar:?] at kamon.okhttp3.instrumentation.KamonTracingInterceptor.intercept(KamonTracingInterceptor.scala:27) ~[kamon-bundle_2.13-2.2.0.jar:2.2.0] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) ~[okhttp-4.9.0.jar:?] at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154) ~[okhttp-4.9.0.jar:?] at kamon.datadog.package$HttpClient.$anonfun$doRequest$1(package.scala:57) ~[kamon-datadog_2.13-2.2.0.jar:2.2.0] at scala.util.Try$.apply(Try.scala:210) ~[scala-library-2.13.3.jar:?] at kamon.datadog.package$HttpClient.doRequest(package.scala:57) ~[kamon-datadog_2.13-2.2.0.jar:2.2.0] at kamon.datadog.package$HttpClient.doMethodWithBody(package.scala:65) ~[kamon-datadog_2.13-2.2.0.jar:2.2.0] at kamon.datadog.package$HttpClient.doPut(package.scala:86) ~[kamon-datadog_2.13-2.2.0.jar:2.2.0] at kamon.datadog.package$HttpClient.doJsonPut(package.scala:96) ~[kamon-datadog_2.13-2.2.0.jar:2.2.0] at kamon.datadog.DatadogSpanReporter.reportSpans(DatadogSpanReporter.scala:116) ~[kamon-datadog_2.13-2.2.0.jar:2.2.0] at kamon.module.ModuleRegistry.$anonfun$scheduleSpansBatch$1(ModuleRegistry.scala:217) ~[kamon-core_2.13-2.2.0.jar:2.2.0] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18) ~[scala-library-2.13.3.jar:?] at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:671) ~[scala-library-2.13.3.jar:?] at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:430) [scala-library-2.13.3.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:834) [?:?]
7 replies
Shailesh Patil
@mineme0110
Hi
I am getting this error Any idea why it could be
Exception in thread "main" java.lang.ClassCastException: class ch.qos.logback.classic.spi.LoggingEvent cannot be cast to class kamon.instrumentation.context.HasContext (ch.qos.logback.classic.spi.LoggingEvent and kamon.instrumentation.context.HasContext are in unnamed module of loader 'app')81ca0ad52ddf4b6f837db7a502939ed0 Exception in thread "main" java.lang.ClassCastException: class ch.qos.logback.classic.spi.LoggingEvent cannot be cast to class kamon.instrumentation.context.HasContext (ch.qos.logback.classic.spi.LoggingEvent and kamon.instrumentation.context.HasContext are in unnamed module of loader 'app')
"io.kamon" %% "kamon-bundle" % 2.2.2 I am using this
I got this error with earlier version 2.1.11
DanielMao
@DanielMao1
Hi, I am new to kamon. I would like include this project as our akka system metric monitor. i would like to know if I have several nodes, and each of them running with kenela agent, what is the communication mechanism of their communication? are they send actor messages to each other?
Bruno Figueiredo Alves
@brunofigalves
Hi all, I'm using Akka 2.6 and Kamon 2.x and I pretend to gather metrics from Akka and export them to JMX however I don't think it's possible. Could you help me with this or suggest some workarounds?
boriska-ta
@boriska-ta
High all, have a question about cadinality for Kamon tags. Docs say, avoid high cadinality for "metric-related tags". Does "metric-related tag" here means span#tagMetrics - as opposed to Span#tag ? If yes, can I store high cadinality values in Span#tag without generating time series for each value combination ?
Giridhar Pathak
@gpathak
hey folks, i have an older application built on playframework 2.3. does kamon still support that?
or is there an older version of it i can use?
any direction would be helpful.