-
Notifications
You must be signed in to change notification settings - Fork 5
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(otel): add otel to ingest API #342
Conversation
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.
Approve but I am curious about the unhandled/unlogged exception err.
"""Handle exceptions that aren't caught elsewhere""" | ||
metrics.add_metric(name="UnhandledExceptions", unit=MetricUnit.Count, value=1) | ||
logger.exception("Unhandled exception") | ||
return JSONResponse(status_code=500, content={"detail": "Internal Server Error"}) |
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.
Can we log the err here? f"Unhandled exception {err=}"
?
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.
I see that we have been doing the same in raster api and stac api so this may be for a discussion.
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.
I think it makes sense to log the error but we could handle that in a separate PR including raster and stac. Or include it in this PR for all the services
### Breaking - #356 #### Breaking changes notes Breaking: `VEDA_COGNITO_DOMAIN` configuration now required along with one time administrator step to update existing user pool client allowed callback urls with the ingest-api's URL ### Added - #342 - #330 - #323 ### Changed/Updated - #355 - #340 ### Fixed 1. - #367 2. - #365 3. - #361 4. - #360 5. - #358 8. - #345 9. - #344 12. - #339 13. - #338 14. - #337 15. - #335 16. - #334 17. - #331 20. - #329 21. - #327 22. - #326 23. - #325 24. - #324
Issue
#289
What?
Testing?
otel
stack and viewed generated metrics and logs using POC Grafana instance