-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add logging of siri errors to SiriAzureETUpdater #5475
Conversation
Codecov ReportAttention:
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
☔ View full report in Codecov by Sentry. |
fuzzyTripMatcher(), | ||
entityResolver(), | ||
feedId, | ||
false, | ||
updates | ||
); | ||
ResultLogger.logUpdateResult(feedId, "siri-et", result); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
7aee96b
to
35ebd1a
Compare
src/ext/java/org/opentripplanner/ext/siri/updater/azure/SiriAzureETUpdater.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
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.