-
Notifications
You must be signed in to change notification settings - Fork 174
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
url.scheme
is present on HTTP client metrics but not HTTP client spans
#450
Comments
The motivation to not have a scheme on client spans was duplication (we already have scheme in the URL). Span-to-metrics pipelines can extract scheme from the URL - this way a majority(?) of users who don't use such pipelines would not get duplicated data. Scheme also is not a single parameter that's different between metrics and traces (e.g. URL only appears on traces). I'd prefer not to add a scheme to client spans and we can always revisit it in the future since it's a tracing attribute. |
ya, I agree with this 👍 wdyt about moving in Java at least we may need to make it opt-in due to our design constraint around metric attributes being a subset of span attributes (until someday maybe when tracing attribute advice is spec'd out similar to metric attribute advice) |
The motivation to add it to metrics was that we have the condition on the port "If not default (80 for http scheme, 443 for https).", but there was no scheme to tell If we remove the scheme, we should probably make the port required on metrics. |
I already implemented that a while ago actually: open-telemetry/opentelemetry-java-instrumentation#9642 |
url.scheme
was recently added to HTTP client metrics in #357, but we didn't add it to HTTP client spans.this is problematic for a couple of use cases:
The text was updated successfully, but these errors were encountered: