opentracing-playframework


License

License

GroupId

GroupId

com.lucidchart
ArtifactId

ArtifactId

opentracing-playframework_2.12
Last Version

Last Version

0.18
Release Date

Release Date

Type

Type

jar
Description

Description

opentracing-playframework
opentracing-playframework
Project URL

Project URL

https://github.com/lucidsoftware/opentracing-playframework
Project Organization

Project Organization

OpenTracing
Source Code Management

Source Code Management

https://github.com/lucidsoftware/opentracing-playframework

Download opentracing-playframework_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.lucidchart/opentracing-playframework_2.12/ -->
<dependency>
    <groupId>com.lucidchart</groupId>
    <artifactId>opentracing-playframework_2.12</artifactId>
    <version>0.18</version>
</dependency>
// https://jarcasting.com/artifacts/com.lucidchart/opentracing-playframework_2.12/
implementation 'com.lucidchart:opentracing-playframework_2.12:0.18'
// https://jarcasting.com/artifacts/com.lucidchart/opentracing-playframework_2.12/
implementation ("com.lucidchart:opentracing-playframework_2.12:0.18")
'com.lucidchart:opentracing-playframework_2.12:jar:0.18'
<dependency org="com.lucidchart" name="opentracing-playframework_2.12" rev="0.18">
  <artifact name="opentracing-playframework_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.lucidchart', module='opentracing-playframework_2.12', version='0.18')
)
libraryDependencies += "com.lucidchart" % "opentracing-playframework_2.12" % "0.18"
[com.lucidchart/opentracing-playframework_2.12 "0.18"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.8

Project Modules

There are no modules declared in this project.

OpenTracing for Play Framework

Build Status Maven Version

Usage

Add dependency

This project is cross-versioned against Play. The Play version appears as a suffix.

// Play 2.3.x-2.4.x
libraryDependencies += "com.lucidchart" % "opentracing-play-active" % "<version>-2.3"
// Play 2.5.x
libraryDependencies += "com.lucidchart" % "opentracing-play-active" % "<version>-2.5"

Configure Akka

This project ThreadContextSpan and GlobalTracer.

To propagate the thread-local span, add akka-thread-context as a dependency and configure Akka to use DispatchConfigurator.

akka.actor.default-dispatcher.type = com.lucidchart.akka.threadcontext.DefaultDispatcherConfigurator

Add filters

Add TracingFilter, specifying the SpanTaggers that you want.

import io.opentracing.play.active

class Filters extends DefaultHttpFilters(
  new DefaultTracingFilter(
    new ContentTagger,               // content headers
    new HttpVersionTagger,           // HTTP version
    new StandardSpanTagger,          // standard OpenTracing tags
    new TagsSpanTagger(_ => true)    // Play request tags
  )
)
com.lucidchart

Lucid Software, Inc

Versions

Version
0.18
0.17
0.16
0.15
0.14