Page MenuHomePhabricator

[identity] add env var conditional json tracing
ClosedPublic

Authored by will on Tue, Apr 23, 11:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 2:43 PM
Unknown Object (File)
Wed, May 1, 6:09 PM
Unknown Object (File)
Wed, May 1, 1:27 PM
Unknown Object (File)
Wed, May 1, 11:39 AM
Unknown Object (File)
Wed, May 1, 10:41 AM
Unknown Object (File)
Tue, Apr 30, 5:40 PM
Unknown Object (File)
Tue, Apr 30, 1:15 PM
Unknown Object (File)
Tue, Apr 30, 9:26 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

will requested review of this revision.Tue, Apr 23, 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.Wed, Apr 24, 2:19 AM
This revision was landed with ongoing or failed builds.Thu, Apr 25, 9:28 PM
This revision was automatically updated to reflect the committed changes.