generated from micronaut-projects/micronaut-project-template
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
Description
Related links:
- [Feature] Support for new Kotlin inline classes as parameters and return values on @Transactional micronaut-core#5290 (comment)
- Inline KSP classes micronaut-core#9716
Expected Behavior
Name of the method should appear in the trace as is or as specified in the first arg of @NewSpan.
Actual Behaviour
The name appears with extra characters, given this code:
@Singleton
open class OneService {
@NewSpan
open fun hello(): Result<String> {
return Result.success("hello")
}
}the name of the method in the trace appears like this:
and when doing
@NewSpan("helloworld")it appears like this:
Steps To Reproduce
Set up a dummy service and a controller:
@Singleton
open class OneService {
@NewSpan("helloworld")
open fun hello(): Result<String> {
return Result.success("hello")
}
}
@Controller("/probes")
class Healthcheck(val oneService: OneService) {
@Get("/health")
fun health(): String {
return "health" + oneService.hello().getOrThrow()
}
}Run jaeger:
docker run --name jaeger \
-e COLLECTOR_OTLP_ENABLED=true \
-p 16686:16686 \
-p 4317:4317 \
-p 4318:4318 \
jaegertracing/all-in-one
Call the method: curl http://localhost:8080/probes/health
Observe wrong names in the trace.
Environment Information
- macos 14.5 (23F79)
- jdk 17
Example Application
No response
Version
4.4.2, 4.50
natalie-zamani