Skip to content

Support first contentful paint event in document load plugin #2725

Open
@8tme

Description

@8tme

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

Image

Actual Result

document load span whith 9 events

Image

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

by the way, why wasn't there a distinction between node and browser when introducing the platform in opentelemetry-core?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions