-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove akka-http-core bindAndHandle instrumentation
- Loading branch information
1 parent
53ca2a3
commit f989eff
Showing
44 changed files
with
511 additions
and
618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#Akka HTTP core instrumentation | ||
|
||
##HttpExt Instrumentation | ||
Instrumentation for Akka HTTP Core is carried out in the `akka.http.scaladsl.HttpExt` class that serves as the | ||
main entry point for a server. 2 convenience methods from `HttpExt` that can be used to start an HTTP server have | ||
been instrumented, they are : | ||
|
||
- ` bindAndHandleAsync`: Convenience method which starts a new HTTP server at the given endpoint and uses handler that is a function recieving an `HttpRequest` and returning a `Future[HttpResponse]` | ||
- ` bindAndHandleSync`: Convenience method which starts a new HTTP server at the given endpoint and uses handler that is a function recieving an `HttpRequest` and returning a `HttpResponse` | ||
|
||
|
||
It has been decide that intrumentation is not extended for `bindAndHandle` which starts a new HTTP server using a | ||
`akka.stream.scaladsl.Flow` instance. This is due to a clash in the Akka Http Routing DSL instrumentation. | ||
|
||
|
||
Users wishing to start an HTTP Server from an `akka.stream.scaladsl.Flow` can use the following workarround | ||
|
||
```scala | ||
val flow: Flow[HttpRequest, HttpResponse, NotUsed] = ??? | ||
val asyncHandler: HttpRequest => Future[HttpResponse] = request => Source.single(request).via(flow).runWith(Sink.head) | ||
Http().bindAndHandleAsync(asyncHandler, host, port) | ||
``` | ||
|
||
This workarround is not needed for users using calling `bindAndHandle` using `akka.http.scaladsl.Route` from the | ||
Akka Http Routing DSL. Instrumentation should work in the same way being called from the other conveniencs methods | ||
to start an HTTP Server | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#Akka HTTP core instrumentation | ||
|
||
##HttpExt Instrumentation | ||
Instrumentation for Akka HTTP Core is carried out in the `akka.http.scaladsl.HttpExt` class that serves as the | ||
main entry point for a server. 2 convenience methods from `HttpExt` that can be used to start an HTTP server have | ||
been instrumented, they are : | ||
|
||
- ` bindAndHandleAsync`: Convenience method which starts a new HTTP server at the given endpoint and uses handler that is a function recieving an `HttpRequest` and returning a `Future[HttpResponse]` | ||
- ` bindAndHandleSync`: Convenience method which starts a new HTTP server at the given endpoint and uses handler that is a function recieving an `HttpRequest` and returning a `HttpResponse` | ||
|
||
|
||
It has been decide that intrumentation is not extended for `bindAndHandle` which starts a new HTTP server using a | ||
`akka.stream.scaladsl.Flow` instance. This is due to a clash in the Akka Http Routing DSL instrumentation. | ||
|
||
|
||
Users wishing to start an HTTP Server from an `akka.stream.scaladsl.Flow` can use the following workarround | ||
|
||
```scala | ||
val flow: Flow[HttpRequest, HttpResponse, NotUsed] = ??? | ||
val asyncHandler: HttpRequest => Future[HttpResponse] = request => Source.single(request).via(flow).runWith(Sink.head) | ||
Http().bindAndHandleAsync(asyncHandler, host, port) | ||
``` | ||
|
||
This workarround is not needed for users using calling `bindAndHandle` using `akka.http.scaladsl.Route` from the | ||
Akka Http Routing DSL. Instrumentation should work in the same way being called from the other conveniencs methods | ||
to start an HTTP Server | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#Akka HTTP core instrumentation | ||
|
||
##HttpExt Instrumentation | ||
Instrumentation for Akka HTTP Core is carried out in the `akka.http.scaladsl.HttpExt` class that serves as the | ||
main entry point for a server. 2 convenience methods from `HttpExt` that can be used to start an HTTP server have | ||
been instrumented, they are : | ||
|
||
- ` bindAndHandleAsync`: Convenience method which starts a new HTTP server at the given endpoint and uses handler that is a function recieving an `HttpRequest` and returning a `Future[HttpResponse]` | ||
- ` bindAndHandleSync`: Convenience method which starts a new HTTP server at the given endpoint and uses handler that is a function recieving an `HttpRequest` and returning a `HttpResponse` | ||
|
||
|
||
It has been decide that intrumentation is not extended for `bindAndHandle` which starts a new HTTP server using a | ||
`akka.stream.scaladsl.Flow` instance. This is due to a clash in the Akka Http Routing DSL instrumentation. | ||
|
||
|
||
Users wishing to start an HTTP Server from an `akka.stream.scaladsl.Flow` can use the following workarround | ||
|
||
```scala | ||
val flow: Flow[HttpRequest, HttpResponse, NotUsed] = ??? | ||
val asyncHandler: HttpRequest => Future[HttpResponse] = request => Source.single(request).via(flow).runWith(Sink.head) | ||
Http().bindAndHandleAsync(asyncHandler, host, port) | ||
``` | ||
|
||
This workarround is not needed for users using calling `bindAndHandle` using `akka.http.scaladsl.Route` from the | ||
Akka Http Routing DSL. Instrumentation should work in the same way being called from the other conveniencs methods | ||
to start an HTTP Server | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#Akka HTTP core instrumentation | ||
|
||
##HttpExt Instrumentation | ||
Instrumentation for Akka HTTP Core is carried out in the `akka.http.scaladsl.HttpExt` class that serves as the | ||
main entry point for a server. 2 convenience methods from `HttpExt` that can be used to start an HTTP server have | ||
been instrumented, they are : | ||
|
||
- ` bindAndHandleAsync`: Convenience method which starts a new HTTP server at the given endpoint and uses handler that is a function recieving an `HttpRequest` and returning a `Future[HttpResponse]` | ||
- ` bindAndHandleSync`: Convenience method which starts a new HTTP server at the given endpoint and uses handler that is a function recieving an `HttpRequest` and returning a `HttpResponse` | ||
|
||
|
||
It has been decide that intrumentation is not extended for `bindAndHandle` which starts a new HTTP server using a | ||
`akka.stream.scaladsl.Flow` instance. This is due to a clash in the Akka Http Routing DSL instrumentation. | ||
|
||
|
||
Users wishing to start an HTTP Server from an `akka.stream.scaladsl.Flow` can use the following workarround | ||
|
||
```scala | ||
val flow: Flow[HttpRequest, HttpResponse, NotUsed] = ??? | ||
val asyncHandler: HttpRequest => Future[HttpResponse] = request => Source.single(request).via(flow).runWith(Sink.head) | ||
Http().bindAndHandleAsync(asyncHandler, host, port) | ||
``` | ||
|
||
This workarround is not needed for users using calling `bindAndHandle` using `akka.http.scaladsl.Route` from the | ||
Akka Http Routing DSL. Instrumentation should work in the same way being called from the other conveniencs methods | ||
to start an HTTP Server | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
...umentation/akka-http-core-10.0/src/main/scala/akka/http/scaladsl/FlowRequestHandler.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#Akka HTTP core instrumentation | ||
|
||
##HttpExt Instrumentation | ||
Instrumentation for Akka HTTP Core is carried out in the `akka.http.scaladsl.HttpExt` class that serves as the | ||
main entry point for a server. 2 convenience methods from `HttpExt` that can be used to start an HTTP server have | ||
been instrumented, they are : | ||
|
||
- ` bindAndHandleAsync`: Convenience method which starts a new HTTP server at the given endpoint and uses handler that is a function recieving an `HttpRequest` and returning a `Future[HttpResponse]` | ||
- ` bindAndHandleSync`: Convenience method which starts a new HTTP server at the given endpoint and uses handler that is a function recieving an `HttpRequest` and returning a `HttpResponse` | ||
|
||
|
||
It has been decide that intrumentation is not extended for `bindAndHandle` which starts a new HTTP server using a | ||
`akka.stream.scaladsl.Flow` instance. This is due to a clash in the Akka Http Routing DSL instrumentation. | ||
|
||
|
||
Users wishing to start an HTTP Server from an `akka.stream.scaladsl.Flow` can use the following workarround | ||
|
||
```scala | ||
val flow: Flow[HttpRequest, HttpResponse, NotUsed] = ??? | ||
val asyncHandler: HttpRequest => Future[HttpResponse] = request => Source.single(request).via(flow).runWith(Sink.head) | ||
Http().bindAndHandleAsync(asyncHandler, host, port) | ||
``` | ||
|
||
This workarround is not needed for users using calling `bindAndHandle` using `akka.http.scaladsl.Route` from the | ||
Akka Http Routing DSL. Instrumentation should work in the same way being called from the other conveniencs methods | ||
to start an HTTP Server | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.