DatadogMetrics

sttp.tapir.server.metrics.datadog.DatadogMetrics
See theDatadogMetrics companion object
case class DatadogMetrics[F[_]](client: StatsDClient, namespace: String, metrics: List[Metric[F, _]])

Attributes

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

Members list

Concise view

Value members

Concrete methods

def addCustom(m: Metric[F, _]): DatadogMetrics[F]

Registers a custom metric.

Registers a custom metric.

Attributes

def addRequestsActive(labels: MetricLabels): DatadogMetrics[F]

Registers a $namespace.request_active.count|c|#path, method counter (assuming default labels).

Registers a $namespace.request_active.count|c|#path, method counter (assuming default labels).

Attributes

def addRequestsDuration(labels: MetricLabels, clock: Clock): DatadogMetrics[F]

Registers a $namespace.request_duration_seconds.xxx|h|#path, method, status, phase histogram (assuming default labels).

Registers a $namespace.request_duration_seconds.xxx|h|#path, method, status, phase histogram (assuming default labels).

Attributes

def addRequestsTotal(labels: MetricLabels): DatadogMetrics[F]

Registers a $namespace.request_total.count|c|#path, method, status counter (assuming default labels).

Registers a $namespace.request_total.count|c|#path, method, status counter (assuming default labels).

Attributes

def metricsInterceptor(ignoreEndpoints: Seq[AnyEndpoint]): MetricsRequestInterceptor[F]

The interceptor which can be added to a server's options, to enable metrics collection.

The interceptor which can be added to a server's options, to enable metrics collection.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product