-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTEL transaction naming | Identity transaction per METHOD protocol://host:port/path #11762
Comments
See https://github.com/ludovic-pourrat/kong/tree/feat/otel-transaction-naming as draft proposal. We successfully tested this change today and we are able to track the transactions as expected. |
@samugi Could you take a look at this proposal? |
…rt/path Kong#11762 Use the method also.
Similar issue: #11511 Span names, aka "operation names" were updated in pull/10577 to satisfy the need of having a lower cardinality on certain platforms (Datadog in particular), where having the "path" define different operations resulted in what some users considered to be too many different operations that made searching and grouping of spans challenging. Since different users have different requirements, as mentioned in #11511, one way to improve this could be increasing flexibility by making the span names customizable, rather than assigning a fixed / hardcoded value. We can consider that as a future enhancement, but it is not planned yet. For this reason at this time we cannot take the approach requested in this issue as a valid way forward. Please let me know if you have any further comments or doubts and I will do my best to address them. |
Hi, Thanks for your feedback, by the way if you take the point of view of the open telemetry, there are not that much of a user customisation requirement when dealing with semantics on http and messaging traces (that applies to the nature of a multi-protocol API gateway). Further-more, if you look on the top vendors in this space (OTEL) they typically do not offer a way to customise the spans names too. So, I would rather advocate for an opinionated choice to name the spans according to the OTEL guidelines, see references below. https://opentelemetry.io/docs/specs/semconv/ At this stage the current implementation if not applicable as it mixes all the transactions into the "kong" name, but we can afford to wait with our patch approach. How will be the way to track this topic later-on if this proposal got rejected ? Thanks again. |
you raise a more than valid point @ludovic-pourrat. I will look into this a bit further and come back with some feedback / proposal. Thanks for bringing this up. |
@ludovic-pourrat
I can think of three main formats that could be desirable for the kong root span's name in particular:
A safe default would be just Maybe a good compromise would be leaving Quick note: I looked into the proposed solution here, it seems that it goes against the specification since it includes the full URI (including the path) in the span name:
|
Hi, First of all, I would not advocate for having You are right our proposal is also adding the Thanks for your feedback. |
@ludovic-pourrat I agree with most of your considerations, there are two details I want to highlight:
Because of that, I think an acceptable solution would be to provide a configuration option with a string pattern that can optionally include the |
@samugi fine, I will make a PR following your last proposal. Thanks ! |
that's awesome @ludovic-pourrat thank you! Feel free to ping me when it's ready, so we can review it. Thanks again. |
This issue is marked as stale because it has been open for 14 days with no activity. |
Dear contributor, We are automatically closing this issue because it has not seen any activity for three weeks. Your contribution is greatly appreciated! Please have a look Sincerely, |
Discussed in #11761
Originally posted by ludovic-pourrat October 14, 2023
As of today when enabling the OTEL plugin into Kong, all the transactions are named statically "kong" where usually the OTEL agents pick up a transaction identification that reflects better the transactions. In the case of Kong the transition should be something related to the route exposed.
This feature request aim to provide an addition property to named the OTEL transaction differently based on the route definition to follow a common pattern in the OTEL, e.g.
METHOD protocol://host:port/path
.I will provide a pull request to illustrate this.
Feedback, and advices are welcome !
The text was updated successfully, but these errors were encountered: