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

chore: Try sending metrics to panorama before clog API #109

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

just-boris
Copy link
Member

Issue #, if available:

Description of changes:

Before: try finding AWSC.Clog.log API first, then panorama
After: try panorama API first, then AWSC.Clog.log.

Part of the plan to eventually remove AWSC.Clog.log from our code after confirming the panorama API collects all data

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

@@ -91,28 +97,26 @@ export class PanoramaClient {
}
if (!validateLength(metric.eventName, 1000)) {
console.error(`Event name for metric is too long: ${metric.eventName}`);
return;
return true;
Copy link
Member Author

Choose a reason for hiding this comment

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

Validation constraints are same for both API, return true to prevent it from attempting to use AWSC.Clog.log if the validation fails

Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.22%. Comparing base (57d049f) to head (d94e3c7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #109   +/-   ##
=======================================
  Coverage   99.22%   99.22%           
=======================================
  Files          27       27           
  Lines         644      647    +3     
  Branches      175      175           
=======================================
+ Hits          639      642    +3     
  Misses          5        5           

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

@just-boris just-boris marked this pull request as ready for review January 6, 2025 17:31
@just-boris just-boris requested a review from a team as a code owner January 6, 2025 17:31
@just-boris just-boris requested review from abdhalees and removed request for a team January 6, 2025 17:31
@just-boris just-boris added this pull request to the merge queue Jan 7, 2025
Merged via the queue into main with commit 257144b Jan 7, 2025
36 checks passed
@just-boris just-boris deleted the panorama-swap branch January 7, 2025 13:54
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