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

Move pyramid otel instrumentation to BaseplateConfigurator #952

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

trevorriles
Copy link
Contributor

This moves the instrumentation logic to the initialization of the BaseplateConfigurator class instead of being an import side-effect.

This moves the instrumentation logic to the initialization of the BaseplateConfigurator class instead of being an import side-effect.
@trevorriles trevorriles requested a review from a team as a code owner July 24, 2024 12:59
@trevorriles
Copy link
Contributor Author

@chriskuehl I believe this is closer to what you were looking for in the main PR. When testing this against some ads services I ran into the case where they didn't import the module directly and missed instrumentation because of it. Any service integrating pyramid with baseplate should use the BaseplateConfigurator class so I think this is a good landing spot.

@trevorriles trevorriles merged commit 6531fbe into develop Jul 24, 2024
5 checks passed
@trevorriles trevorriles deleted the fix/pyramid-framework-instrumentation-hook branch July 24, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants