Skip to content

Comments

Fix docker-tests assumption by Postgres-Sqlalchemy case about scope of metrics#4258

Open
tammy-baylis-swi wants to merge 2 commits intoopen-telemetry:mainfrom
tammy-baylis-swi:fix-docker-tests-assumptions-metrics-scope
Open

Fix docker-tests assumption by Postgres-Sqlalchemy case about scope of metrics#4258
tammy-baylis-swi wants to merge 2 commits intoopen-telemetry:mainfrom
tammy-baylis-swi:fix-docker-tests-assumptions-metrics-scope

Conversation

@tammy-baylis-swi
Copy link
Contributor

@tammy-baylis-swi tammy-baylis-swi commented Feb 24, 2026

Description

Merge of span start/end metrics in core (open-telemetry/opentelemetry-python#4880) has revealed one of the contrib docker-tests makes assumptions about shape of exported metrics. The PostgreSQL-SqlAlchemy test case was assuming the only metrics in scope are from its instrumentation. Now there are different scopes: span start, span end, and framework-specific instrumentors.

Example failed run: https://github.com/open-telemetry/opentelemetry-python-contrib/actions/runs/22367683059/job/64737919774

Type of change

Please delete options that are not relevant.

  • 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?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

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
  • Documentation has been updated

@tammy-baylis-swi tammy-baylis-swi marked this pull request as ready for review February 24, 2026 22:49
@tammy-baylis-swi tammy-baylis-swi requested a review from a team as a code owner February 24, 2026 22:49
@tammy-baylis-swi tammy-baylis-swi moved this to Ready for review in @xrmx's Python PR digest Feb 24, 2026
@tammy-baylis-swi tammy-baylis-swi moved this from Ready for review to Easy to review / merge / close in @xrmx's Python PR digest Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Easy to review / merge / close

Development

Successfully merging this pull request may close these issues.

2 participants