-
Notifications
You must be signed in to change notification settings - Fork 889
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
Enhance semantic conventions for HTTP #263
Enhance semantic conventions for HTTP #263
Conversation
I'm very sorry for bringing it late. But I think the same applies to
Again, I'm very sorry for bringing it late |
I did actually think about removing |
Also, if I follow @jmacd correctly, the decision whether some attribute should be put on resources would be demoted to an implementation detail/optimization decision that each instrumentation can make itself, which I would really like, it would make this discussion much easier. |
@Oberon00 I feel strongly about it. I understand the need of the property, but, first, it may be a resource property and secondly it may not have an "http" prefix. Also not having it in this spec doesn't forbid to collect it. I tried to commit the change myself so I can merge it, but I don't have permissions |
That's strange, I was sure that I ticked the "Allow maintainers to edit your PR" checkbox.
That seems to apply to tracer= trace.get_factory().createTracer(
'my.web.instrumentation',
'1.2.3',
extra_resources={
'http.app_root': environ['CONTEXT_PREFIX'],
'http.app': SOME_CONFIGURED_APP_ID
}
span = tracer.start_as_active_span(...)
span.set_attribute('http.server_name', environ['SERVER_NAME']) And now I have a tracer+span that is created for only a single span. 😕 I created a PR I can merge to remove the application root against this PR. @SergeyKanzhelev if you are sure about that, I'll merge it and you can merge this PR right after 😃 dynatrace-oss-contrib#4 |
In-reply-to: open-telemetry#263 (comment)
Do you see this as a problem? I have been thinking of the tracer returned in this case as merely a binding between the underlying SDK and some resource/component/service-name attributes. |
This comment:
Doesn't match to description in PR which says it "identifies the app":
In any case I'm happy to get into this discussion, but I really don't want to block this PR any further. I think it will be more productive to merge this without |
It still sounds to me like you talk about the Anyway, I removed it for now, so I think this is now ready to be merged. |
I was the last one blocking this PR. All concerns are now resolved. I'm merging now. Typically we would wait for some time after the last meaningful change. But in case of this long living PR I'd suggest to file an issue if this change was not aligned with what you have previously approved. Simply in interest of velocity |
* Update HTTP conventions. * Improve HTTP, fix references to peer.*. * Wording. * typo a/an http * host.name/host.port * Clarify server_name. * Typo, missing 'has'. * Typo nginx link. * Wording. * Typo in span name convention. Co-Authored-By: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com> * Wording for common HTTP intro. In response to @SergeyKanzhelev (open-telemetry#263 (comment)). * Make http.flavor non-required. In-reply-to: open-telemetry#263 (comment) Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com> * Clarify client's http.url. In-reply-to: open-telemetry#263 (comment) * HTTP server span name: reference `http.app_root`. In-reply-to: open-telemetry#263 (comment) * Split "Definitions" from conventions, clarify app_root. In-reply-to: open-telemetry#263 (comment) * Qualify order of http server attr preferences. In-reply-to: open-telemetry#263 (comment) * Address review comments. * Typo. * Make http.status_code conditionally required. * Move http.host,target,scheme; clarify empty host. * Fix misplaced paragraph. * Fix client host/port requirement. * Fix HTTP status code OC incompat annotations. * Fix incomplete sentence. * Markdown syntax. * Update HTTP example (remove URL, add client). In-reply-to: open-telemetry#263 (comment) * Fix markdownlint. * Typo. * Remove http.app Span attribute. In-reply-to: open-telemetry#263 (comment) In-reply-to: open-telemetry#263 (comment) * Fix lint. ./specification/data-semantic-conventions.md:155: MD036 Emphasis used instead of a header * Add note about n:1 server_name + app_root => app. * Typo. * Remove http.app_root. (open-telemetry#4) In-reply-to: open-telemetry#263 (comment)
This PR aims to improve the semantic conventions for HTTP. For that, it also draws from experience at Dynatrace. We plan to later (hopefully soon) make similar PRs for other semantic convention areas, including a clean-up of the host.* and peer.* attributes used here.