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: Report metric errors #110

Merged
merged 1 commit into from
Jan 13, 2025
Merged

feat: Report metric errors #110

merged 1 commit into from
Jan 13, 2025

Conversation

just-boris
Copy link
Member

Issue #, if available:

Description of changes:

Currently, if there are issues with metrics, we simply drop it. With this change, we will report an error message instead, which we can investigate

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@just-boris just-boris requested a review from a team as a code owner January 10, 2025 17:32
@just-boris just-boris requested review from abdhalees and removed request for a team January 10, 2025 17:32
console.error(message);
const panorama = this.findPanorama(window);
if (panorama) {
panorama('trackCustomEvent', {
Copy link
Member Author

Choose a reason for hiding this comment

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

Theoretically, this could be a this.sendMetric() call. But I decided to avoid recursion for safety and call the panorama function directly.

Safety > code reuse

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.23%. Comparing base (257144b) to head (6bbb44b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #110   +/-   ##
=======================================
  Coverage   99.22%   99.23%           
=======================================
  Files          27       27           
  Lines         647      652    +5     
  Branches      169      176    +7     
=======================================
+ Hits          642      647    +5     
  Misses          5        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@just-boris just-boris enabled auto-merge January 13, 2025 11:26
@just-boris just-boris added this pull request to the merge queue Jan 13, 2025
Merged via the queue into main with commit 5ae5804 Jan 13, 2025
36 checks passed
@just-boris just-boris deleted the error-metrics branch January 13, 2025 13:13
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