Skip to content

Require aiopg to be less than 1.3.0#560

Merged
codeboten merged 3 commits intoopen-telemetry:mainfrom
RyanSiu1995:fix-aiopg-integration
Jul 1, 2021
Merged

Require aiopg to be less than 1.3.0#560
codeboten merged 3 commits intoopen-telemetry:mainfrom
RyanSiu1995:fix-aiopg-integration

Conversation

@RyanSiu1995
Copy link
Contributor

@RyanSiu1995 RyanSiu1995 commented Jul 1, 2021

Description

Aiopg latest version has breaking changes in its internal object.
It breaks the build in default branch.
I have fixed the version here to make the build pass first.
It has a break changes in its API so we may need a further discussion on how to handle this case.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

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

@RyanSiu1995 RyanSiu1995 requested review from a team, aabmass and owais and removed request for a team July 1, 2021 15:36


_instruments = ("aiopg >= 0.13.0",)
_instruments = ("aiopg <= 1.2.1",)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be >=0.13.0, <1.3.0 consider 1.3 introduced the breaking change and for some reason we did not want to support versions older than 0.13?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't aware of the support of multiple conditions in python.
I have updated accordingly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Can you please open an issue that tracks adding support for 1.3.0 and newer versions? Please also include details about the issue this instrumentation has today.

Copy link
Contributor Author

@RyanSiu1995 RyanSiu1995 Jul 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created as #561

@cdvv7788
Copy link
Contributor

cdvv7788 commented Jul 1, 2021

For more context, breaking change introduced here: https://github.com/aio-libs/aiopg/pull/813/files

@codeboten codeboten merged commit c100b21 into open-telemetry:main Jul 1, 2021
andresbeckruiz pushed a commit to open-o11y/opentelemetry-python-contrib that referenced this pull request Jul 1, 2021
andresbeckruiz pushed a commit to open-o11y/opentelemetry-python-contrib that referenced this pull request Jul 12, 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.

4 participants