-
Notifications
You must be signed in to change notification settings - Fork 420
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
feat(starlette): add resource aggregation #1714
Conversation
… in middleware.py
…t for starlette by passing the starlette config
* added starlette to circleci config * removed starlette utils as it is not needed * checked for sleep parameter in starlette test app.py * removed starlette 12 from tox.ini
…DataDog/dd-trace-py into Isabella-Pham/starlette-auto-middleware .
* modified config variable name to integration_config in the asgi middleware
…DataDog/dd-trace-py into Isabella-Pham/starlette-auto-middleware updating branch
…DataDog/dd-trace-py into Isabella-Pham/starlette-auto-middleware Updating branch
* modified documentation in __init__.py to include "aggregate_resource" * asgi middleware checks for "aggregate_resource" in config and will aggregate resource if True * added tests to check that resources are properly aggregated upon request
…ggregate resources in the config (no need to pass anything into patch() * added more tests
…patch looking into changing the current approach from modifying the scope to modifying the span
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 nice job! just a few things to address. I really like the clean interaction between the integration and the asgi middleware -- it sets a good precedent for future asgi web framework integrations.
…raceMiddleware to modify the spna
…/dd-trace-py into Isabella-Pham/starlette-features updating to match master
…/dd-trace-py into Isabella-Pham/starlette-features updating code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 great stuff!
90ecb16
90ecb16
to
e133491
Compare
Versions with "rc" in them seem to register as spelling mistakes. https://app.circleci.com/pipelines/github/DataDog/dd-trace-py/3057/workflows/ab9bf51f-d338-4bff-8549-08e02d4cbcf1/jobs/358186 @majorgreys introduced this fix to solve the issue in #1714. Co-authored-by: Tahir H. Butt <[email protected]>
Description
The current Starlette integration uses ASGI middleware and does not have Starlette specific features. This change adds Starlette specific features to the Starlette integration.
Checklist