Skip to content

Instantly share code, notes, and snippets.

@baybatu
Last active December 24, 2020 10:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baybatu/624e05e6f16fdf778a7668066bf41f5f to your computer and use it in GitHub Desktop.
Save baybatu/624e05e6f16fdf778a7668066bf41f5f to your computer and use it in GitHub Desktop.
Log http2 frames on a finagle service
import com.twitter.finagle.http2.param.FrameLoggerNamePrefix
val service =
        Http
          .client
          .withLabel("service-label")
          .configured(FrameLoggerNamePrefix(this.getClass.getName))
          .withHttp2
          .newService("localhost:8080")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment