Package

jp.co.bizreach

trace

Permalink

package trace

Visibility
  1. Public
  2. All

Type Members

  1. case class TraceData(span: Span) extends Product with Serializable

    Permalink

    Class for a trace data take over between requests.

    Class for a trace data take over between requests.

    span

    the present span

  2. trait ZipkinTraceServiceLike extends AnyRef

    Permalink

    Basic trait for Zipkin tracing at Play.

    Basic trait for Zipkin tracing at Play.

    You need a Tracing and an ExecutionContext used by a tracer report data. Here's an example setup that sends trace data to Zipkin over http.

    class ZipkinTraceService @Inject() (
      actorSystem: ActorSystem) extends ZipkinTraceServiceLike {
    
      // the execution context provided by and used for tracing purposes
      implicit val executionContext: ExecutionContext = actorSystem.dispatchers.lookup("zipkin-trace-context")
    
      // configure a reporter, now create a tracing component
      val tracing = Tracing.newBuilder()
        .localServiceName("example")
        .reporter(AsyncReporter
          .builder(OkHttpSender.create("http://localhost:9411/api/v1/spans"))
          .build()
        )
        .sampler(Sampler.create(0.1F))
        .build()
    }

Value Members

  1. object ZipkinTraceConfig

    Permalink

Ungrouped