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

Add logging of siri errors to SiriAzureETUpdater #5475

Merged

Conversation

habrahamsson-skanetrafiken
Copy link
Contributor

Summary

Add logging and metrics in SiriAzureETUpdater

Also use the service bus endpoint instead of the dataInitializationUrl as the url tag in metrics, since this is the more relevant url.

@habrahamsson-skanetrafiken habrahamsson-skanetrafiken requested a review from a team as a code owner November 3, 2023 09:53
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (a9b0151) 66.80% compared to head (a842ae8) 66.80%.
Report is 3 commits behind head on dev-2.x.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #5475      +/-   ##
=============================================
- Coverage      66.80%   66.80%   -0.01%     
- Complexity     15557    15561       +4     
=============================================
  Files           1806     1806              
  Lines          69821    69830       +9     
  Branches        7357     7357              
=============================================
+ Hits           46646    46648       +2     
- Misses         20718    20724       +6     
- Partials        2457     2458       +1     
Files Coverage Δ
.../org/opentripplanner/updater/spi/ResultLogger.java 96.15% <100.00%> (+0.50%) ⬆️
...ner/ext/siri/updater/azure/SiriAzureETUpdater.java 0.00% <0.00%> (ø)
...ri/updater/azure/SiriAzureETUpdaterParameters.java 44.44% <0.00%> (-22.23%) ⬇️

... and 1 file with indirect coverage changes

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

fuzzyTripMatcher(),
entityResolver(),
feedId,
false,
updates
);
ResultLogger.logUpdateResult(feedId, "siri-et", result);
Copy link
Member

Choose a reason for hiding this comment

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

This is potentially called several times per second for each incoming update. Is that what you want?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, you have a point that it might be a bit excessive. We are only interested in the errors really so I updated the PR accordingly.

Copy link
Member

@leonardehrenfried leonardehrenfried left a comment

Choose a reason for hiding this comment

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

It you find someone from Skane to review you can merge this in quickly.

@Bartosz-Kruba Bartosz-Kruba merged commit 4e6fcba into opentripplanner:dev-2.x Nov 6, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants