Skip to content
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

How should we name a span when the route is empty on status 200 #621

Closed
codefromthecrypt opened this issue Feb 23, 2018 · 3 comments
Closed

Comments

@codefromthecrypt
Copy link
Member

I noticed with an OPTIONS request that the span name defaulted to "options" not including a matched template. This is due to no route being defined for that method (though the OPTIONS request was valid). How should be map this? "options not_found" as there's no route defined for this? or leave it as "options" relegating to the path to clarify it.

@basvanbeek
Copy link
Member

basvanbeek commented Feb 23, 2018

I think the most common case for OPTIONS is that most people handle this in a generic middleware for CORS purposes and do not really have any routing distinctions.

I even question if in many cases tracing OPTIONS requests is just pure added noise.

So my preference would be 'no_route' over 'not_found' as not found signals there typically are different routes for OPTIONS requests.

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Feb 23, 2018 via email

@codefromthecrypt
Copy link
Member Author

so this will end up as default ("get")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants