Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
package com.codename1.backend.otel
OpenTelemetry tracing and metrics for a backend, exported over OTLP/HTTP without an OpenTelemetry library.
Most servers never name these classes: the OpenTelemetry annotation in
com.codename1.backend.annotations has the build wire an OtlpTracer into the
generated entry point. Code that assembles its own server installs one with
com.codename1.backend.Tracing.install, and every request, outbound call and
database statement is then exported as a span to the collector the deployment
names. OtlpMetricExporter sends the process’s metrics to the same collector
on an interval.
Server code: this package is not available in the app.
Types
class OtlpMetricExporter | Exports Metrics over OTLP/HTTP, every cn1.otel.metrics.intervalMillis (OTEL_METRIC_EXPORT_INTERVAL, one minute by default), with cumulative temporality. |
class OtlpTracer | OpenTelemetry tracing over OTLP/HTTP, with no OpenTelemetry library behind it. |