Skip to content

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.

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

@codecov
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