Tracer

extension Tracer
  • Create a Span based on a reference from a Connection

    Declaration

    Swift

    public func span(name: String, from connection: Connection) -> Span

    Parameters

    name

    The name of the Span

    request

    The connection the Span reference (e.g. parent Span) is created from

    Return Value

    The newly created Span

  • Create a Span based on a reference from a Request

    Declaration

    Swift

    public func span(name: String, from request: HTTPClient.Request) -> Span

    Parameters

    name

    The name of the Span

    request

    The request the Span reference (e.g. parent Span) is created from

    Return Value

    The newly created Span