Skip to content

Implement http.Hijacker for otelmux#6562

Closed
rehanpfmr wants to merge 4 commits into
open-telemetry:mainfrom
fidelity-contributions:fix-5402
Closed

Implement http.Hijacker for otelmux#6562
rehanpfmr wants to merge 4 commits into
open-telemetry:mainfrom
fidelity-contributions:fix-5402

Conversation

@rehanpfmr
Copy link
Copy Markdown
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 <Rehan.Pasha@fmr.com>
Date:   Sat Sep 7 21:58:48 2024 +0530

    Merge branch 'main' into fix-5402

    Signed-off-by: Pasha, Rehan <Rehan.Pasha@fmr.com>

commit 8b0f94e6b500c5e2d65d1c65bbcbb63087afe7e7
Author: Pasha, Rehan <Rehan.Pasha@fmr.com>
Date:   Sat Sep 7 21:57:41 2024 +0530

    Update CHANGELOG.md

    Signed-off-by: Pasha, Rehan <Rehan.Pasha@fmr.com>

commit f76eb1d70480828fb0626b3285a46a82cd6c13a7
Author: Pasha, Rehan <Rehan.Pasha@fmr.com>
Date:   Sat Sep 7 20:35:39 2024 +0530

    Delete instrgen/driver/driver

    Signed-off-by: Pasha, Rehan <Rehan.Pasha@fmr.com>

commit 158e36cae0eff704203349929c919c0d8f4e669d
Author: Rehan Pasha <rehan.pasha@fmr.com>
Date:   Sat Sep 7 11:03:24 2024 -0400

    Updating test case and lint

    Signed-off-by: Rehan Pasha <rehan.pasha@fmr.com>

commit 256b7de
Author: Rehan Pasha <rehan.pasha@fmr.com>
Date:   Tue Aug 27 06:28:33 2024 -0400

    Adding test case for otelmux and fixing lint

    Signed-off-by: Rehan Pasha <rehan.pasha@fmr.com>

Signed-off-by: Rehan Pasha <rehan.pasha@fmr.com>
Signed-off-by: Rehan Pasha <rehan.pasha@fmr.com>
Signed-off-by: rehanpfmr <111350825+rehanpfmr@users.noreply.github.com>
Comment thread CHANGELOG.md Outdated

router.ServeHTTP(w, r)
assert.True(t, called, "failed to run test")
assert.True(t, called)
Copy link
Copy Markdown
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?

assert.Equal(t, 1, calledTest, "failed to run test")
}

func TestRecordingResponseWriterHijack(t *testing.T) {
Copy link
Copy Markdown
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.

Copy link
Copy Markdown
Contributor

@akats7 akats7 left a comment

Choose a reason for hiding this comment

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

@rehanpfmr can you add or modify the existing test to test successfully calling Hijack, upgrading the connection might be a good test

Co-authored-by: Damien Mathieu <42@dmathieu.com>
@rehanpfmr
Copy link
Copy Markdown
Contributor Author

Sure, I have started looking into it again.

@akats7
Copy link
Copy Markdown
Contributor

akats7 commented Feb 18, 2025

Hi @rehanpfmr, I believe this should be resolved by the recent semconv refactor, the new implementation should preserve the original interfaces implemented by the writer, take a look at these PRs and feel free to test and bring up any issues.
#6650 #6652

@akats7
Copy link
Copy Markdown
Contributor

akats7 commented Apr 16, 2025

Hey @rehanpfmr, this should be resolved so I'm going to close the PR and related issue, reach out if there are any lingering issues, thanks.

@akats7 akats7 closed this Apr 16, 2025
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.

3 participants