Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Provide NIO Futures TracingSupport extensions package (not sure how to call the module yet) #125

Open
@ktoso

Description

@ktoso

It's quite common to want to quickly wrap some code in a span for debugging, like:

let work = tracer.withSpan(name: "collecting work") { 
  // collect work
  // do things here
  return work
}

we should likely offer this build in suggar right away, and then the same would be useful for NIO futures...

let work = tracer.withEventLoopFutureSpan(name: "collecting work", context: context) { 
  return  makeSomeCall()
    .map()
    .map()
    .map() 
}

There's a number of alternative API shapes this could take... promise.traced(context) etc as well...

Let's see which APIs we should provide in an NIO "tracing helpers" package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    i:nioRelates to swift-nio integration

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions