elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.73k stars 8.14k forks source link

[APM] Provide better guidance for transactions named unknown route #118695

Open eyalkoren opened 2 years ago

eyalkoren commented 2 years ago

Summary of the problem As I user I want a clear hint for possible resolution for transactions that are not properly named, specifically - such named <HTTP_METHOD> unknown route: unknown_route

Typically, we get such transactions when the capturing agent doesn't support a specific framework or use case. However, we have ways to work around these issues, that are agent specific, for example:

Since the unknown route string is aligned across agents (and we will make sure to align if there are exceptions), it would be very useful if the UI will contain a link to the proper troubleshooting documentation (e.g. in the Java agent docs), preferably for the relevant agent based on the event metadata. This fits well for other efforts we now make to provide such in-UI guidance for data onboarding.

elasticmachine commented 2 years ago

Pinging @elastic/observability-design (design)

formgeist commented 2 years ago

@eyalkoren Thanks for raising this - I've moved this into our design backlog and will keep it in mind for upcoming planning. I think we'd need an effort to identify possible other "signs of incomplete data or use" but this is a good start.

elasticmachine commented 2 years ago

Pinging @elastic/apm-ui (Team:apm)

yngrdyn commented 1 year ago

I don't know is this is applicable to all apm agents but I tried to find documentation about it for agents like go, python or ruby and I didn't find information related to this. Would it be worthy to align the documentation on this matter for all the agents? If we do, we could easily build an agent based doc link for troubleshooting

yngrdyn commented 1 year ago

@elastic/apm-agent-devs would it be possible to have a troubleshooting section for unknown route for every agent as we have in java agent? This will enable us in the task of generating a link to the proper agent documentation whenever we encounter unknown route.

gregkalapos commented 1 year ago

@yngrdyn what's the idea here? Would we link to those docs from the UI in case we show transactions with unknown route?

Would it be worthy to align the documentation on this matter for all the agents?

If I understand the idea correctly, then yeah, I think that makes sense.

Fyi I added this topic to the next agents weekly. I'll try to figure out which agents have such transactions (I think most of them do), and then create issues to add those docs and link the issues here.

yngrdyn commented 1 year ago

hey @gregkalapos,

yes, the idea is to provide a link for the documentation from the UI whenever we get unknown route transaction name, something for example like

image
gregkalapos commented 1 year ago

Opened an issue to document this for .NET: https://github.com/elastic/apm-agent-dotnet/issues/2179

trentm commented 1 year ago

I've added https://github.com/elastic/apm-agent-nodejs/issues/3619 for the Node.js APM agent.