OpenTelemetry export for this process.
A generated server, worker or cron process calls install at start with
the project's dartvel.openTelemetry section and the process environment,
so a project exports with no code at all. Code that wants control calls it
itself with a DVOpenTelemetryConfig -- DV.ObservabilityAndLogging .useOpenTelemetry(...) is the same call.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- exporter → DVOtlpExporter?
-
The exporter in use, or null when nothing is exported.
no setter
- installed → bool
-
Whether this process is exporting anything.
no setter
Static Methods
-
exportMetricsNow(
) → Future< void> - Collects the registry and sends it now, with the runtime gauges brought up to date first.
-
forceFlush(
) → Future< void> - Sends everything queued now.
-
install(
DVOpenTelemetryConfig config, {Map< String, String> ? environment, DVOtlpSend? send, Map<String, Object> resource = const <String, Object>{}}) → DVOpenTelemetryConfig -
Starts exporting as
configsays, replacing any earlier installation. -
recordRuntimeMetrics(
) → void - The runtime gauges: uptime and, where the platform says, memory.
-
shutdown(
) → Future< void> - Sends what is left and stops exporting. A server calls this when it is told to stop, or the last seconds of spans go with the process.