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

Use sqlalchemy version in sqlalchemy commenter instead of opentelemetry library version #2404

Merged
merged 5 commits into from
Apr 22, 2024

Conversation

nicknicolini
Copy link
Contributor

Description

The SqlAlchemy commenter is currently using the library version in the comment it emits, e.g.:

{
  'db_driver': 'psycopg2', 
  'db_framework': 'sqlalchemy:0.45b0'
}

We should instead be using the sqlalchemy version here, as SqlCommenter did before

Type of change

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

How Has This Been Tested?

Currently no tests, not sure how to test this in your testing setup. Please let me know how you want me to test!

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • 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
  • [N/A] Documentation has been updated

Copy link

linux-foundation-easycla bot commented Apr 9, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@xrmx
Copy link
Contributor

xrmx commented Apr 10, 2024

Nice catch, would it be useful to add a test or asserts to an already available test?

Copy link
Contributor

@xrmx xrmx left a comment

Choose a reason for hiding this comment

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

Hoping for some tests but looks like we have tests running the code already (without asserting anything regarding the version)

@xrmx
Copy link
Contributor

xrmx commented Apr 18, 2024

@nicknicolini could you please rebase and add a CHANGELOG entry?

…ry library version

The SqlAlchemy commenter is currently using the library version in the comment it emits, e.g.:

```
{
  'db_driver': 'psycopg2', 
  'db_framework': 'sqlalchemy:0.45b0'
}
```

We should instead be using the sqlalchemy version here, as SqlCommenter did before
@nicknicolini nicknicolini requested a review from a team as a code owner April 22, 2024 22:48
@ocelotl ocelotl merged commit 5cb4dab into open-telemetry:main Apr 22, 2024
258 checks passed
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.

None yet

5 participants