diff --git a/build.sbt b/build.sbt index b1f888e..304e379 100644 --- a/build.sbt +++ b/build.sbt @@ -7,8 +7,16 @@ def play = Project("play", file("play")).cross.cross(playAxis) def `play-active` = Project("play-active", file("play-active")) .cross.cross(playAxis).dependsOn(CrossableProject.toDependency(play)) +lazy val `play_2.13_2.7` = play("2.7.3")("2.13.0") + +lazy val `play_2.12_2.7` = play("2.7.3")("2.12.8") + lazy val `play_2.12_2.6` = play("2.6.23")("2.12.8") +lazy val `play_2.11_2.7` = play("2.7.3")("2.11.12") + +lazy val `play_2.11_2.6` = play("2.6.23")("2.11.12") + inScope(Global)(Seq( credentials += Credentials( "Sonatype Nexus Repository Manager", @@ -17,7 +25,7 @@ inScope(Global)(Seq( sys.env.getOrElse("SONATYPE_PASSWORD", "" )), developers += Developer("pauldraper", "Paul Draper", "paulddraper@gmail.com", url("https://github.com/pauldraper")), - homepage := Some(url("https://git.lucidchart.com/lucidsoftware/opentracing-playframework")), + homepage := Some(url("https://github.com/lucidsoftware/opentracing-playframework")), licenses += "Apache 2.0 License" -> url("https://www.apache.org/licenses/LICENSE-2.0"), organization := "com.lucidchart", organizationHomepage := Some(url("http://opentracing.io/")), diff --git a/play/src/main/scala/io/opentracing/play/TagsSpanTagger.scala b/play/src/main/scala/io/opentracing/play/TagsSpanTagger.scala deleted file mode 100644 index e78833f..0000000 --- a/play/src/main/scala/io/opentracing/play/TagsSpanTagger.scala +++ /dev/null @@ -1,14 +0,0 @@ -package io.opentracing.play - -import io.opentracing.Span -import play.api.mvc.{RequestHeader, Result} - -/** - * Applies tags from [[RequestHeader#tags]] - */ -@deprecated("Tags are deprecated in Play 2.6; use RequestAttributesSpanTagger instead", "0.14") -class TagsSpanTagger(include: String => Boolean) extends SpanTagger { - def tag(span: Span, request: RequestHeader, result: Result) = { - request.tags.foreach { case (key, value) => if (include(key)) span.setTag(s"play.$key", value) } - } -}