warehouse icon indicating copy to clipboard operation
warehouse copied to clipboard

feat(logging): add datadog context, celery structure logs

Open JacobCoffee opened this issue 2 months ago • 0 comments

Split off from https://github.com/pypi/warehouse/pull/18748

worker-1        | {"event": "beat: Acquired lock", "timestamp": "2025-10-10T20:42:30.035157Z", "level": "info", "dd.env": "development", "dd.version": "unknown"}
worker-1        | {"event": "mingle: all alone", "timestamp": "2025-10-10T20:42:31.034605Z", "level": "info", "dd.env": "development", "dd.version": "unknown"}
worker-1        | {"event": "celery@7e55216e877e ready.", "timestamp": "2025-10-10T20:42:31.043095Z", "level": "info", "dd.env": "development", "dd.version": "unknown"}

structures celery logs, injects dd context.

based on https://www.structlog.org/en/stable/frameworks.html#celery

pairs with https://github.com/pypi/warehouse/pull/18844

JacobCoffee avatar Oct 10 '25 20:10 JacobCoffee