You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add protocol metadata to resource fetch requests #12395
Currently, information like network.protocol.name and network.protocol.version is added to http.client operations. It would be beneficial to also see this information on resource fetch requests
Solution Brainstorm
Add network.protocol.name and network.protocol.version to resource fetch requests
It would be beneficial to also see this information on resource fetch requests
To confirm, do you mean the browser resource.(script|img|other) spans?
I'm not sure this is possible given that the instrumentation for fetch and XHR requests (http.client spans) is different from how we create the resource spans. Gonna tag @k-fish since I believe you worked on adding the http timing data. Any idea if we can obtain this data for resource spans?
Activity
Lms24 commentedon Jun 7, 2024
Hey @serglom21 thanks for writing in!
To confirm, do you mean the browser

resource.(script|img|other)spans?I'm not sure this is possible given that the instrumentation for
fetchand XHR requests (http.clientspans) is different from how we create theresourcespans. Gonna tag @k-fish since I believe you worked on adding the http timing data. Any idea if we can obtain this data for resource spans?Which SDK are you using?
AbhiPrasad commentedon Jun 7, 2024
Yes we can add this because it comes from the resource timing api:
sentry-javascript/packages/browser/src/tracing/request.ts
Line 219 in c8e9f84
serglom21 commentedon Jun 7, 2024
@Lms24 Correct! I mean all of the
resource.(script|img|other)spansThis was tested on
sentry.javascript.react@7.69.0k-fish commentedon Jun 10, 2024
Ditto what @AbhiPrasad said, it's definitely possible to get that out since it's part of resource timing.