Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID generator for celery extension #51

Merged
merged 9 commits into from Sep 29, 2022
Merged

ID generator for celery extension #51

merged 9 commits into from Sep 29, 2022

Commits on Sep 9, 2022

  1. Added customizable generator options to celery extension to better ma…

    …tch capabilities of the correlation id middleware
    
    * Added optional "header_key" param to asgi_correlation_id.extensions.celery.load_correlation_id
    * Added optional "generator" param to asgi_correlation_id.extensions.celery.load_correlation_id
    * Added optional "generator" param to asgi_correlation_id.extensions.celery.load_celery_current_and_parent_ids
    David Pryor (dapryor) committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    75d6587 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2022

  1. Standardized the signatures for CorrelationIdFilter/CeleryTracingIdsF…

    …ilter and standardized the string trimming process for the filtering logic
    
    * changed type from int to Optional[int] for optional parameter 'uuid_length' in CeleryTracingIdsFilter
    * changed default value from 32 to None for optional parameter 'uuid_length' in CeleryTracingIdsFilter
    * created and utilized function `_trim_string` to standardize string trimming logic in filters
    * added test to test string trimming for CeleryTracingIdsFilter
    * added test to ensure the default behavior of the new filter matched the behavior of the old filter.  This assumes default generators are used
    David Pryor (dapryor) committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    ec96801 View commit details
    Browse the repository at this point in the history
  2. expanded load_celery_current_and_parent_ids to be able to utilize t…

    …he internally generated celery_id
    
    * Added optional argument `use_internal_celery_task_id` to `load_celery_current_and_parent_ids`
    * When `use_internal_celery_task_id` is set to True, the internal celery task ID will be used and the generator function will be ignored
    * Updated README with information on this new argument
    David Pryor (dapryor) committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    6fe14ef View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2022

  1. Configuration menu
    Copy the full SHA
    c3685a2 View commit details
    Browse the repository at this point in the history
  2. refactor: Rename uuid lambda

    sondrelg committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    57f4e40 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    202cbf6 View commit details
    Browse the repository at this point in the history
  4. refactor: Combine two tests

    sondrelg committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    237e183 View commit details
    Browse the repository at this point in the history
  5. chore: Fix codecov upload

    sondrelg committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    a239fab View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    808122c View commit details
    Browse the repository at this point in the history