DatadogSpan

com.ovoenergy.natchez.extras.datadog.DatadogSpan$
See theDatadogSpan companion class

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class SpanNames(name: String, service: String, resource: String)

Natchez only allows you to set the span name but we need also a resource + service which can differ by span. As such we allow you to encode this data with an advanced colon based DSL

Natchez only allows you to set the span name but we need also a resource + service which can differ by span. As such we allow you to encode this data with an advanced colon based DSL

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object SpanNames

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def complete[F[_] : Clock](datadogSpan: DatadogSpan[F], exitCase: ExitCase): F[Unit]

Given a span, complete it - this involves turning the span into a CompletedSpan which 1:1 matches the Datadog JSON structure before submitting it to a queue of spans we'll eventually submit to the local agent in the background

Given a span, complete it - this involves turning the span into a CompletedSpan which 1:1 matches the Datadog JSON structure before submitting it to a queue of spans we'll eventually submit to the local agent in the background

Attributes

def create[F[_] : Async](queue: Queue[F, SubmittableSpan], names: SpanNames, meta: Map[String, TraceValue])(identifiers: Ref[F, SpanIdentifiers]): Resource[F, DatadogSpan[F]]
def fromKernel[F[_] : Async](queue: Queue[F, SubmittableSpan], names: SpanNames, kernel: Kernel): Resource[F, DatadogSpan[F]]
def fromParent[F[_] : Async](name: String, parent: DatadogSpan[F]): Resource[F, DatadogSpan[F]]