Skip to content

OpenTelemetry plugin in Kong is naming all transactions statically as "kong" #14384

Answered by KianAnbarestani
hoanbc asked this question in Help
Discussion options

You must be logged in to vote

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:

  • Forking the plugin
  • Modifying kong/plugins/opentelemetry/plugin.lua to set the span name dynamically, for example:
    span:set_name(kong.request.get_method() .. " " .. kong.request.get_path())
    This will …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by StarlightIbuki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants