Quarkus Opentelemetry Exporter for Microsoft Azure

This exporter sends data to the Azure portal.

General configuration

Add the Azure exporter extension to your build file.

For Maven:

<dependency>
    <groupId>io.quarkiverse.opentelemetry.exporter</groupId>
    <artifactId>quarkus-opentelemetry-exporter-azure</artifactId>
    <version>3.16.2.0</version>
</dependency>

You also need an Application Insights resource receiving the telemetry data. Go to the Azure portal, search for your Application Insights resource or create a new one. On the overview page of your resource, you will find a connection string in the top right corner.

You have two options to set the connection string, one using the Quarkus naming semantics and the other one using the default naming from the Azure documentation.

To set the connection string with the Quarkus naming semantics:

  • With the application.properties file

quarkus.otel.azure.applicationinsights.connection.string=your_connection_string
  • With the QUARKUS_OTEL_AZURE_APPLICATIONINSIGHTS_CONNECTION_STRING=your_connection_string environment variable

If you want to use the Azure Application Insights way of specifying the connection string, which takes precedence over the Quarkus way:

  • With the application.properties file

applicationinsights.connection.string=your_connection_string

Read this page to learn more configuration options.

Enable more instrumentation

  • Set the quarkus.otel.logs.enabled property to true to enable the logging instrumentation

  • Read this documentation to enable the JDBC instrumentation

  • Read this documentation to enable additional instrumentations

Enable more Azure extensions

Extension Configuration Reference

Configurations using the Azure semantics: