OpenTelemetry - Events
You can export Cinnamon events to OpenTelemetry.
OpenTelemetry dependency
First make sure that your build is configured to use the Cinnamon Agent and has instrumentations enabled, such as Akka instrumentation or Akka HTTP instrumentation.
- sbt
-
libraryDependencies += Cinnamon.library.cinnamonOpenTelemetry
- Maven
-
<dependency> <groupId>com.lightbend.cinnamon</groupId> <artifactId>cinnamon-opentelemetry</artifactId> <version>2.20.4</version> </dependency>
- Gradle
-
dependencies { implementation group: 'com.lightbend.cinnamon', name: 'cinnamon-opentelemetry', version: '2.20.4' }
Event exporters
Cinnamon events are exported as OpenTelemetry log records. This means you have to configure either a gRPC log record exporter or a HTTP log expoter.
Each event also has an associated LongCounter metric (Cinnamon Rate metric) that tracks the number of times an event has been emitted.