Skip to content

test: instrumentation/http - improve test coverage to meet 85% threshold#2174

Open
aabhinavvvvvvv wants to merge 2 commits intoopen-telemetry:mainfrom
aabhinavvvvvvv:fix/http-instrumentation-test-coverage
Open

test: instrumentation/http - improve test coverage to meet 85% threshold#2174
aabhinavvvvvvv wants to merge 2 commits intoopen-telemetry:mainfrom
aabhinavvvvvvv:fix/http-instrumentation-test-coverage

Conversation

@aabhinavvvvvvv
Copy link
Copy Markdown

Summary

Fixes #2157 — the http instrumentation test coverage was below the required 85% threshold due to two silent bugs.

Root causes

1. Two connection test files were misnamed

stable/connection.rb and old/connection.rb in the test directory did not match the Rakefile's FileList['test/**/*_test.rb'] glob, so they were never executed.

2. old/connection_test.rb was broken

The before block called instrumentation.install({}) without setting OTEL_SEMCONV_STABILITY_OPT_IN=old. This caused determine_semconv to return 'stable', prepending Patches::Stable::Connection instead of Patches::Old::Connection.

kaylareopelle
kaylareopelle previously approved these changes Apr 7, 2026
Copy link
Copy Markdown
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

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

Thank you for catching this! 🚀

@kaylareopelle kaylareopelle dismissed their stale review April 7, 2026 14:42

Whoops, I misread the CI results. Clearing my approval until we can re-run.

@kaylareopelle kaylareopelle changed the title instrumentation/http: improve test coverage to meet 85% threshold test(instrumentation/http): improve test coverage to meet 85% threshold Apr 7, 2026
@kaylareopelle kaylareopelle changed the title test(instrumentation/http): improve test coverage to meet 85% threshold test: instrumentation/http: improve test coverage to meet 85% threshold Apr 7, 2026
@kaylareopelle kaylareopelle changed the title test: instrumentation/http: improve test coverage to meet 85% threshold test: instrumentation/http - improve test coverage to meet 85% threshold Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve http instrumentation test coverage

2 participants