-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What happened?
What happened?
What happened?
Steps to Reproduce
use like this in my react app
registerInstrumentations({
instrumentations: [
new DocumentLoadInstrumentation({}),
],
})Expected Result
document load span whith 11 events
Actual Result
document load span whith 9 events
Additional Details
After a meticulous investigation, I have identified several potential causes that lead to this issue. when executing
if (!this.getConfig().ignoreNetworkEvents) {
addSpanNetworkEvents(span, resource);
}otperformance is always an empty array. I realize that this can only be achieved through asynchronous retrieval.
the code is located here
https://github.com/open-telemetry/opentelemetry-js-contrib/blob/1eb77007669bae87fe5664d68ba6533b95275d52/plugins/web/opentelemetry-instrumentation-document-load/src/instrumentation.ts#L208
by the way, why wasn't there a distinction between node and browser when introducing the platform in opentelemetry-core?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request

