You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement proper logging of API user activity #29794
To support observability, troubleshooting, auditability, and security for API-based access, this epic focuses on implementing comprehensive and consistent logging for API user activity.
The goal is to ensure that all significant API interactions are traceable and recorded in a secure and structured way.
Objectives:
Improve traceability of API user behavior
Support faster troubleshooting of onboarding or usage issues
How expansive and detailed do we want the logging to be? Need to be determined.
Every error? Theoretically, we're doing this already. Do we need more error info? Can we talk to the people who would use this info for an idea what's missing?
Every API call? Maybe. How much of the calls do we log? Some, for analytics and to help trouble-shooting.
So... should this ticket be placed On Hold for now, or is there helpful work that could be performed now (say, in a sub-issue)? Sentry removal? Review of existing failure points?
Activity
severinbeauvais commentedon Jul 30, 2025
How expansive and detailed do we want the logging to be? Need to be determined.
Every error? Theoretically, we're doing this already. Do we need more error info? Can we talk to the people who would use this info for an idea what's missing?
Every API call? Maybe. How much of the calls do we log? Some, for analytics and to help trouble-shooting.
Three groups that would benefit:
Considerations:
TVWerdal commentedon Aug 22, 2025
Thor confirmed that legal-api is not yet ready to implement GCP structured logging. He first needs to reach the min required version of python.
severinbeauvais commentedon Aug 22, 2025
So... should this ticket be placed On Hold for now, or is there helpful work that could be performed now (say, in a sub-issue)? Sentry removal? Review of existing failure points?
TVWerdal commentedon Aug 22, 2025
Thor has noted that we should be up to date by Monday.
TVWerdal commentedon Sep 4, 2025
Logging was implemented by Thor as part of the upgrade to GCP - bcgov/lear#3739
Remaining tasks:
vikas-gov commentedon Jan 29, 2026