snok / asgi-correlation-id

Request ID propagation for ASGI apps
MIT License
369 stars 29 forks source link

Add ability to define custom ID generator for the celery extension #50

Closed dapryor closed 1 year ago

dapryor commented 1 year ago

Issue: Unlike the correlation id middleware, the instantiation functions for the celery extension are unable to define a custom ID generator.

Enhancement: To allow a user to customize the celery IDs, accept a generator function to load_correlation_id and load_celery_current_and_parent_ids