OpenTelemetry plugin in Kong is naming all transactions statically as "kong" #14384
-
Hi everyone, I have setup success Kong with OpenTelemetry but on transactions of APM only show as "Kong". I did read a workaround and follow it but it still affect. So somebody have same issuse with me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is a limitation of the current implementation. We share code and trace data for different tracing plugins. This way, the accuracy of each plugin/tracing system is sacrificed. Perhaps we will find a solution in future updates |
Beta Was this translation helpful? Give feedback.
-
Yes, this is a known behavior in Kong OSS 3.9.0 with the OpenTelemetry plugin—all APM transactions are reported with the static name The article you referenced (link) explains the root cause: the OpenTelemetry plugin currently assigns a hardcoded span name (
Notes:
|
Beta Was this translation helpful? Give feedback.
Yes, this is a known behavior in Kong OSS 3.9.0 with the OpenTelemetry plugin—all APM transactions are reported with the static name
"kong"
, which limits trace granularity in tools like Elastic APM.The article you referenced (link) explains the root cause: the OpenTelemetry plugin currently assigns a hardcoded span name (
"kong"
), instead of dynamically using route/service/path/method to differentiate traces.Workaround (Community Use):
You can try customizing the span name in the plugin by:
span:set_name(kong.request.get_method() .. " " .. kong.request.get_path())
This will …