Interface Observe
-
- All Implemented Interfaces:
public interface Observe
Interface for observability operations in the LaunchDarkly Android SDK. Provides methods for recording various types of information.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
recordMetric(Metric metric)
Record a metric value. abstract Unit
recordCount(Metric metric)
Record a count metric. abstract Unit
recordIncr(Metric metric)
Record an increment metric. abstract Unit
recordHistogram(Metric metric)
Record a histogram metric. abstract Unit
recordUpDownCounter(Metric metric)
Record an up/down counter metric. abstract Unit
recordError(Error error, Attributes attributes)
Record an error. abstract Unit
recordLog(String message, Severity severity, Attributes attributes)
Record a log message. abstract Span
startSpan(String name, Attributes attributes)
Start a span. -
-
Method Detail
-
recordMetric
abstract Unit recordMetric(Metric metric)
Record a metric value.
- Parameters:
metric
- The metric to record
-
recordCount
abstract Unit recordCount(Metric metric)
Record a count metric.
- Parameters:
metric
- The count metric to record
-
recordIncr
abstract Unit recordIncr(Metric metric)
Record an increment metric.
- Parameters:
metric
- The increment metric to record
-
recordHistogram
abstract Unit recordHistogram(Metric metric)
Record a histogram metric.
- Parameters:
metric
- The histogram metric to record
-
recordUpDownCounter
abstract Unit recordUpDownCounter(Metric metric)
Record an up/down counter metric.
- Parameters:
metric
- The up/down counter metric to record
-
recordError
abstract Unit recordError(Error error, Attributes attributes)
Record an error.
- Parameters:
error
- The error to recordattributes
- The attributes to record with the error
-
recordLog
abstract 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
-
-
-
-