Skip to content

feat: add element timing instrumentation - #396

Open
joaquin-diaz wants to merge 2 commits into
open-telemetry:mainfrom
embrace-io:joaquin-diaz/feat/element-timing-instrumentation
Open

feat: add element timing instrumentation#396
joaquin-diaz wants to merge 2 commits into
open-telemetry:mainfrom
embrace-io:joaquin-diaz/feat/element-timing-instrumentation

Conversation

@joaquin-diaz

Copy link
Copy Markdown
Contributor

Summary

  • Add ElementTimingInstrumentation, observing the Element Timing API and emitting a log record per entry (identifier, element tag, render/load/start time, url, natural width/height), following the same InstrumentationBase + log-emission pattern as resource-timing/navigation-timing.
  • Add a reusable createPerformanceObserver/isEntryTypeSupported utility (src/utils/performanceObserver.ts) for building single-entry-type PerformanceObservers, and use it in the new instrumentation.

@joaquin-diaz

Copy link
Copy Markdown
Contributor Author

Corresponding semantic convention PR: open-telemetry/semantic-conventions#4011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant