Class InstrumentationManager
-
- All Implemented Interfaces:
public final class InstrumentationManager
Manages instrumentation for LaunchDarkly Observability.
-
-
Constructor Summary
Constructors Constructor Description InstrumentationManager(Application application, String sdkKey, Resource resources, LDLogger logger, Options options)
-
Method Summary
Modifier and Type Method Description final Unit
recordMetric(Metric metric)
final Unit
recordCount(Metric metric)
final Unit
recordIncr(Metric metric)
final Unit
recordHistogram(Metric metric)
final Unit
recordUpDownCounter(Metric metric)
final Unit
recordLog(String message, Severity severity, Attributes attributes)
final Unit
recordError(Error error, Attributes attributes)
final Span
startSpan(String name, Attributes attributes)
-
-
Constructor Detail
-
InstrumentationManager
InstrumentationManager(Application application, String sdkKey, Resource resources, LDLogger logger, Options options)
- Parameters:
application
- The application instance.sdkKey
- The SDK key.resources
- The OpenTelemetry resource describing this service.logger
- The logger.options
- Additional options.
-
-
Method Detail
-
recordMetric
final Unit recordMetric(Metric metric)
-
recordCount
final Unit recordCount(Metric metric)
-
recordIncr
final Unit recordIncr(Metric metric)
-
recordHistogram
final Unit recordHistogram(Metric metric)
-
recordUpDownCounter
final Unit recordUpDownCounter(Metric metric)
-
recordError
final Unit recordError(Error error, Attributes attributes)
-
-
-
-