https://kotlinlang.org logo
#spring
Title
# spring
a

Arivnd Ramesh

02/26/2024, 5:36 PM
Hi everyone, I was wondering if anyone here has been able to get the
@Observed
annotation in the new Observation API in Spring 3 working with suspended functions. I have something like this:
Copy code
@Observed(contextualName = "MY SPAN NAME")
    suspend fun myFunction(myArgs: String) {
        // stuff happens, maybe another suspending function is called
        return
    }
But I'm not quite able to get the span name to show up in my APM app. I looked through the docs and have ensured all the necessary libraries exist (spring AOP, micrometer, statD registry, latest versions of all). Curious to hear if others have got this to work in their Kotlin Spring apps
t

Tasuku Nakagawa

03/05/2024, 1:19 PM
i believe this issue comment will help you