-
Notifications
You must be signed in to change notification settings - Fork 659
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
fix(datadog): only http.route for resource #810
fix(datadog): only http.route for resource #810
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but a quick caveat:
I was thinking through our discussion earlier and I wonder if http.target should be the fall-back?
Since every individual resource in datadog becomes it's own line in APM, I worry that you'll end up with some giant page of thousands (or millions) of resource links because you're using the target.
If this is how DD normally handles it, great. But in the OT world we explicitly call out that the default if "route" is not available for span name is just the HTTP method, since the cardinality is small:
@@ -222,8 +222,8 @@ def test_export(self): | |||
def test_resources(self): | |||
test_attributes = [ | |||
{}, | |||
{"http.method": "GET", "http.route": "/foo"}, | |||
{"http.method": "GET", "http.path": "/foo"}, | |||
{"http.method": "GET", "http.route": "/foo/<int:id>"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be good to add a test case with both http.route and http.target (a common scenario) and ensure that the precedence is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went with the conservative approach you suggested, not backing off to http.target
, being that it would create a cardinality issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@majorgreys can you take a look at comments? then we can merge. |
…ry#810) * docs: add example for express plugin open-telemetry#800 * chore: add link to express example in plugin's readme * chore: addres PR's comments
…ry#810) * docs: add example for express plugin open-telemetry#800 * chore: add link to express example in plugin's readme * chore: addres PR's comments
Address an inconsistency with the the semantic conventions for HTTP the Datadog exporter uses to specify the HTTP route.