Class BraveService

java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<com.linecorp.armeria.server.Service<T_I,T_O>>
com.linecorp.armeria.server.DecoratingService<I,O,I,O>
com.linecorp.armeria.server.SimpleDecoratingService<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>
com.linecorp.armeria.server.SimpleDecoratingHttpService
com.linecorp.armeria.server.brave.BraveService
All Implemented Interfaces:
com.linecorp.armeria.common.util.Unwrappable, com.linecorp.armeria.server.HttpService, com.linecorp.armeria.server.Service<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>

public final class BraveService extends com.linecorp.armeria.server.SimpleDecoratingHttpService
Decorates an HttpService to trace inbound HttpRequests using Brave.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Function<? super com.linecorp.armeria.server.HttpService,BraveService>
    Creates a new tracing HttpService decorator using the specified HttpTracing instance.
    static Function<? super com.linecorp.armeria.server.HttpService,BraveService>
    newDecorator(brave.Tracing tracing)
    Creates a new tracing HttpService decorator using the specified Tracing instance.
    com.linecorp.armeria.common.HttpResponse
    serve(com.linecorp.armeria.server.ServiceRequestContext ctx, com.linecorp.armeria.common.HttpRequest req)
     

    Methods inherited from class com.linecorp.armeria.server.SimpleDecoratingHttpService

    exchangeType

    Methods inherited from class com.linecorp.armeria.server.DecoratingService

    serviceAdded, shouldCachePath

    Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable

    as, toString, unwrap, unwrapAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.linecorp.armeria.server.HttpService

    decorate, decorate

    Methods inherited from interface com.linecorp.armeria.server.Service

    as, serviceAdded, shouldCachePath, unwrap

    Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable

    equalsIgnoreWrapper, unwrapAll
  • Method Details

    • newDecorator

      public static Function<? super com.linecorp.armeria.server.HttpService,BraveService> newDecorator(brave.Tracing tracing)
      Creates a new tracing HttpService decorator using the specified Tracing instance.
    • newDecorator

      public static Function<? super com.linecorp.armeria.server.HttpService,BraveService> newDecorator(HttpTracing httpTracing)
      Creates a new tracing HttpService decorator using the specified HttpTracing instance.
    • serve

      public com.linecorp.armeria.common.HttpResponse serve(com.linecorp.armeria.server.ServiceRequestContext ctx, com.linecorp.armeria.common.HttpRequest req) throws Exception
      Throws:
      Exception