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

Implement http.Hijacker for otelmux #6562

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rehanpfmr
Copy link
Contributor

@rehanpfmr rehanpfmr commented Jan 6, 2025

Issue: #5402

@rehanpfmr rehanpfmr requested a review from a team as a code owner January 6, 2025 15:50
@github-actions github-actions bot requested a review from akats7 January 6, 2025 15:50
rehanpfmr and others added 3 commits January 6, 2025 23:18
commit 9fa866688216dd5f08a22c5f3c01da3337fc400f
Merge: 8b0f94e6 8a49875
Author: Pasha, Rehan <[email protected]>
Date:   Sat Sep 7 21:58:48 2024 +0530

    Merge branch 'main' into fix-5402

    Signed-off-by: Pasha, Rehan <[email protected]>

commit 8b0f94e6b500c5e2d65d1c65bbcbb63087afe7e7
Author: Pasha, Rehan <[email protected]>
Date:   Sat Sep 7 21:57:41 2024 +0530

    Update CHANGELOG.md

    Signed-off-by: Pasha, Rehan <[email protected]>

commit f76eb1d70480828fb0626b3285a46a82cd6c13a7
Author: Pasha, Rehan <[email protected]>
Date:   Sat Sep 7 20:35:39 2024 +0530

    Delete instrgen/driver/driver

    Signed-off-by: Pasha, Rehan <[email protected]>

commit 158e36cae0eff704203349929c919c0d8f4e669d
Author: Rehan Pasha <[email protected]>
Date:   Sat Sep 7 11:03:24 2024 -0400

    Updating test case and lint

    Signed-off-by: Rehan Pasha <[email protected]>

commit 256b7de
Author: Rehan Pasha <[email protected]>
Date:   Tue Aug 27 06:28:33 2024 -0400

    Adding test case for otelmux and fixing lint

    Signed-off-by: Rehan Pasha <[email protected]>

Signed-off-by: Rehan Pasha <[email protected]>
Signed-off-by: Rehan Pasha <[email protected]>
Signed-off-by: rehanpfmr <[email protected]>
@@ -8,6 +8,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

- Implement `http.Hijacker` in`go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux`. (#5402)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Implement `http.Hijacker` in`go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux`. (#5402)
- Implement `http.Hijacker` in`go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux`. (#6562)


router.ServeHTTP(w, r)
assert.True(t, called, "failed to run test")
assert.True(t, called)
Copy link
Member

Choose a reason for hiding this comment

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

Why does this test need changing?

@@ -190,3 +187,18 @@ func TestFilter(t *testing.T) {
assert.Equal(t, 1, calledHealth, "failed to run test")
assert.Equal(t, 1, calledTest, "failed to run test")
}

func TestRecordingResponseWriterHijack(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

Those two tests need to be fixed (so does the linter).
Also, we should be testing calling Hijack() when hijacker is implemented.

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.

2 participants