Global OpenTelemetry Singleton

By default, Cinnamon initializes OpenTelemetry based on the provided configuration.

To defer this setup to an external provider, you can configure Cinnamon to register its metrics against an externally provided global OpenTelemetry instance.

Note

If using the global singleton, please keep in mind it needs to be configured and registered before Cinnamon accesses it.

Cinnamon + Azure Application Insights

Azure Application Insights comes with a javaagent which provides a configured OpenTelemetry instance to send metrics to their cloud.

To send Cinnamon metrics to the Azure cloud, first install and configure the Application Insights agent.

Then configure Cinnamon like this:

Example
cinnamon.opentelemetry {
  use-global-instance = true
}
Note

Using this config causes most of the Cinnamon specific configuration for OpenTelemetry to be ignored. This includes configuration like exporter endpoints, host and service name, resource attributes, metric exporters, log record exporters and views.