Page MenuHomePhabricator

[identity] add env var conditional json tracing
ClosedPublic

Authored by will on Apr 23 2024, 11:40 AM.
Tags
None
Referenced Files
F3298648: D11744.id39526.diff
Sun, Nov 17, 7:40 AM
Unknown Object (File)
Tue, Nov 12, 2:39 PM
Unknown Object (File)
Tue, Nov 12, 2:30 PM
Unknown Object (File)
Tue, Nov 12, 2:26 PM
Unknown Object (File)
Tue, Nov 12, 1:00 PM
Unknown Object (File)
Tue, Nov 12, 10:06 AM
Unknown Object (File)
Tue, Nov 12, 9:20 AM
Unknown Object (File)
Oct 12 2024, 2:59 PM
Subscribers

Details

Summary

Initializes environment with json tracing if the COMM_SERVICES_USE_JSON_LOGS environmental variable is set to "true"

Test Plan

cargo check. Runs with json logs when I set env var to "true" and regular logs when "false".

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

will requested review of this revision.Apr 23 2024, 12:01 PM

As a follow-up, we probably want to extract this logic to comm-lib because finally I'd love to see all services using JSON logs in AWS

This revision is now accepted and ready to land.Apr 24 2024, 2:19 AM
This revision was landed with ongoing or failed builds.Apr 25 2024, 9:28 PM
This revision was automatically updated to reflect the committed changes.