Skip to content

Commit

Permalink
Remove syntax classes doc links (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
mijicd authored Mar 25, 2021
1 parent 5e38de1 commit 5ea621e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ object TracingSyntax {

implicit final class OpenTelemetryZioOps[R, E, A](val effect: ZIO[R, E, A]) extends AnyVal {

/**
* @see [[Tracing.spanFrom]]
*/
def spanFrom[C](
propagator: TextMapPropagator,
carrier: C,
Expand All @@ -23,62 +20,37 @@ object TracingSyntax {
): ZIO[R with Tracing, E, A] =
Tracing.spanFrom(propagator, carrier, getter, spanName, spanKind, toErrorStatus)(effect)

/**
* @see [[Tracing.root]]
*/
def root(
spanName: String,
spanKind: SpanKind = SpanKind.INTERNAL,
toErrorStatus: PartialFunction[E, StatusCode] = Map.empty
): ZIO[R with Tracing, E, A] = Tracing.root(spanName, spanKind, toErrorStatus)(effect)

/**
* @see [[Tracing.span]]
*/
def span(
spanName: String,
spanKind: SpanKind = SpanKind.INTERNAL,
toErrorStatus: PartialFunction[E, StatusCode] = Map.empty
): ZIO[R with Tracing, E, A] = Tracing.span(spanName, spanKind, toErrorStatus)(effect)

/**
* @see [[Tracing.addEvent]]
*/
def addEvent(name: String): ZIO[Tracing with Clock with R, E, A] =
effect <* Tracing.addEvent(name)

/**
* @see [[Tracing.addEventWithAttributes]]
*/
def addEventWithAttributes(
name: String,
attributes: Attributes
): ZIO[Tracing with R, E, A] =
effect <* Tracing.addEventWithAttributes(name, attributes)

/**
* @see [[Tracing.setAttribute]]
*/
def setAttribute(name: String, value: Boolean): ZIO[Tracing with R, E, A] =
effect <* Tracing.setAttribute(name, value)

/**
* @see [[Tracing.setAttribute]]
*/
def setAttribute(name: String, value: Double): ZIO[Tracing with R, E, A] =
effect <* Tracing.setAttribute(name, value)

/**
* @see [[Tracing.setAttribute]]
*/
def setAttribute(name: String, value: Long): ZIO[Tracing with R, E, A] =
effect <* Tracing.setAttribute(name, value)

/**
* @see [[Tracing.setAttribute]]
*/
def setAttribute(name: String, value: String): ZIO[Tracing with R, E, A] =
effect <* Tracing.setAttribute(name, value)

}
}
11 changes: 6 additions & 5 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.8")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.17")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.0")
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.8")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.17")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")

0 comments on commit 5ea621e

Please sign in to comment.