Closed
Bug 1356314
Opened 8 years ago
Closed 8 years ago
switch antenna to mozlog format [antenna]
Categories
(Socorro :: Antenna, task)
Socorro
Antenna
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: willkg, Assigned: willkg)
References
Details
Attachments
(1 file)
Currently, Antenna generates logs using the Python logging module with an unstructured format. This worked super for development and even getting us to production, but it doesn't jive with downstream systems that require a more structured logging format.
This issue covers switching Antenna to use mozlog format.
Assignee | ||
Comment 1•8 years ago
|
||
I'll look at doing this. We're going to need to do the same with the processor. Might as well do it next.
Assignee: nobody → willkg
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•8 years ago
|
||
Dropping this here as a possibility: http://mozbase.readthedocs.io/en/latest/loggingreporting.html
Assignee | ||
Comment 3•8 years ago
|
||
Switching Antenna bugs to Antenna component.
Component: General → Antenna
Assignee | ||
Comment 4•8 years ago
|
||
Found a better library that uses the Python logging infrastructure:
https://github.com/mozilla/mozilla-cloud-services-logger
That library could use a little help, so I'll probably spend a few hours to fix some issues and then use that.
Assignee | ||
Comment 5•8 years ago
|
||
Turns out mozilla-cloud-services-logger is abandoned and that there's a **third** mozlog implementation!
python-dockerflow is the appropriate library to use. It says it's a Django lib, but it's not. Normandy is switching to that soon. We should use that, too.
However, we should spend some time helping hem out first. I wrote up this issue:
https://github.com/mozilla-services/python-dockerflow/issues/12
Assignee | ||
Comment 6•8 years ago
|
||
The code for it is here: https://github.com/mozilla-services/python-dockerflow/blob/master/src/dockerflow/logging.py
Assignee | ||
Comment 7•8 years ago
|
||
Assignee | ||
Comment 8•8 years ago
|
||
Had to fix the host id filter: https://github.com/mozilla/antenna/pull/230
All that's landed. Just need to deploy it.
Assignee | ||
Comment 9•8 years ago
|
||
This is done. Marking as FIXED.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•