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

fix instrumentation of connection when pool.acquire was called multip… #380

Closed
wants to merge 1 commit into from

Conversation

sartx
Copy link
Contributor

@sartx sartx commented Mar 25, 2021

…le times

Description

Fix appearing multiple nested spans when instumented aiopg.pool was used. The reason of the bug was that pool.acquire instrumented connection every time. But pool reuses old connections which had already been instrumented. This fix addes checking connection. Instrumenting connection only if it was not instrumented.

Fixes #372

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

See added integration test in this PR.

Does This PR Require a Core Repo Change?

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@sartx sartx requested review from a team, owais and lzchen and removed request for a team March 25, 2021 11:03
@linux-foundation-easycla
Copy link

CLA Missing ID

@sartx sartx closed this Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant