Skip to content
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

feat: Add page view instrumentation plugin #2386

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

Abinet18
Copy link
Contributor

Part of the client sdk project, Implement PageView event instrumentation
#2372

This PR adds the page view instrumentation which sends an event when a page is loaded (as soon as the html is loaded) or when a route change happens (tracking the history push and replace states)

Tested on an example app with generic routes that use the history api

@Abinet18 Abinet18 requested a review from a team August 16, 2024 21:04
@Abinet18 Abinet18 changed the title Add page view instrumentation plugin feat: Add page view instrumentation plugin Aug 19, 2024
Copy link

codecov bot commented Aug 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.74%. Comparing base (b043ffb) to head (562bca8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2386   +/-   ##
=======================================
  Coverage   90.74%   90.74%           
=======================================
  Files         156      156           
  Lines        7728     7728           
  Branches     1590     1590           
=======================================
  Hits         7013     7013           
  Misses        715      715           

Copy link
Contributor

@martinkuba martinkuba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple small changes, but overall looks good. Failing tests need to be fixed.

@Abinet18 Abinet18 force-pushed the feat/add-page-view-instrumentation branch from 57ab371 to 3c980fa Compare August 27, 2024 17:30
@Abinet18 Abinet18 requested a review from a team as a code owner October 8, 2024 17:42
@Abinet18 Abinet18 force-pushed the feat/add-page-view-instrumentation branch from bee412c to e204c33 Compare October 8, 2024 18:13
@martinkuba
Copy link
Contributor

@Abinet18 I have approved the PR, but forgot to mention that also these files should be updated:

  • .github/component-label-map.yml
  • .github/component_owners.yml

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.

2 participants