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

Instrument ConnectionSource in Akka/Pekko HTTP Servers #11103

Merged
merged 7 commits into from
Apr 18, 2024

Conversation

zackman0010
Copy link
Contributor

Akka/Pekko have a fourth way of binding a route to a server: the ConnectionSource. The ConnectionSource returns a Source[Http.IncomingConnection, Future[ServerBinding]], which you then use Akka Streams mechanics to set up a processing pipeline for each IncomingConnection element. Running the built Stream starts the Server, as seen in the new test file.

@zackman0010 zackman0010 requested a review from a team as a code owner April 11, 2024 15:29
Copy link

linux-foundation-easycla bot commented Apr 11, 2024

CLA Signed

@@ -7,7 +7,7 @@ muzzle {
pass {
group.set("com.typesafe.akka")
module.set("akka-actor_2.11")
versions.set("[2.5,)")
versions.set("[2.5,2.6)") // Akka's custom ForkJoin was removed in 2.6, replaced by the java.concurrent version
Copy link
Member

Choose a reason for hiding this comment

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

akka-actor_2.11 doesn't look like it goes above 2.5.x

maybe instead (or in addition), add

pass {
    group.set("com.typesafe.akka")
    module.set("akka-actor_2.12")
    versions.set("[2.5,2.6)") // Akka's custom ForkJoin was removed in 2.6, replaced by the java.concurrent version
    assertInverse.set(true)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point! Pushed a new commit with that change.

@laurit laurit merged commit 4325eb2 into open-telemetry:main Apr 18, 2024
49 checks passed
@zackman0010 zackman0010 deleted the feature/akka_http branch April 18, 2024 14:11
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

3 participants