Interface HttpServerHandler


@Deprecated public interface HttpServerHandler
Deprecated.
scheduled for removal in 1.4.0
This API is taken from OpenZipkin Brave.

This standardizes a way to instrument http servers, particularly in a way that encourages use of portable customizations via HttpRequestParser and HttpResponseParser.

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Conditionally joins a span, or starts a new trace, depending on if a trace context was extracted from the request.
    void
    Deprecated.
    Finishes the server span after assigning it tags according to the response or error.
  • Method Details

    • handleReceive

      Span handleReceive(HttpServerRequest request)
      Deprecated.
      Conditionally joins a span, or starts a new trace, depending on if a trace context was extracted from the request. Tags are added before the span is started.
      Parameters:
      request - HTTP request
      Returns:
      server side span (either joined or a new trace)
    • handleSend

      void handleSend(HttpServerResponse response, Span span)
      Deprecated.
      Finishes the server span after assigning it tags according to the response or error.
      Parameters:
      response - HTTP response
      span - server side span to end