Object LDObserve.Companion
-
- All Implemented Interfaces:
-
com.launchdarkly.observability.interfaces.Observe
public class LDObserve.Companion implements Observe
-
-
Field Summary
Fields Modifier and Type Field Description public final static LDObserve.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final Unit
init(ObservabilityClient client)
Unit
recordMetric(Metric metric)
Record a metric value. Unit
recordCount(Metric metric)
Record a count metric. Unit
recordIncr(Metric metric)
Record an increment metric. Unit
recordHistogram(Metric metric)
Record a histogram metric. Unit
recordUpDownCounter(Metric metric)
Record an up/down counter metric. Unit
recordError(Error error, Attributes attributes)
Record an error. Unit
recordLog(String message, Severity severity, Attributes attributes)
Record a log message. Span
startSpan(String name, Attributes attributes)
Start a span. -
-
Method Detail
-
init
final Unit init(ObservabilityClient client)
-
recordMetric
Unit recordMetric(Metric metric)
Record a metric value.
- Parameters:
metric
- The metric to record
-
recordCount
Unit recordCount(Metric metric)
Record a count metric.
- Parameters:
metric
- The count metric to record
-
recordIncr
Unit recordIncr(Metric metric)
Record an increment metric.
- Parameters:
metric
- The increment metric to record
-
recordHistogram
Unit recordHistogram(Metric metric)
Record a histogram metric.
- Parameters:
metric
- The histogram metric to record
-
recordUpDownCounter
Unit recordUpDownCounter(Metric metric)
Record an up/down counter metric.
- Parameters:
metric
- The up/down counter metric to record
-
recordError
Unit recordError(Error error, Attributes attributes)
Record an error.
- Parameters:
error
- The error to recordattributes
- The attributes to record with the error
-
recordLog
Unit recordLog(String message, Severity severity, Attributes attributes)
Record a log message.
- Parameters:
message
- The log message to recordseverity
- The severity of the log messageattributes
- The attributes to record with the log message
-
-
-
-