Skip to content

Commit b28afea

Browse files
committed
Enablement for Java native images
1 parent e4cd383 commit b28afea

File tree

1 file changed

+50
-18
lines changed

1 file changed

+50
-18
lines changed

articles/azure-monitor/app/opentelemetry-enable.md

Lines changed: 50 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ Follow the steps in this section to instrument your application with OpenTelemet
4646

4747
- A Java application using Java 8+
4848

49+
### [Java Native](#tab/java-native)
50+
51+
- A Java application using GraalVM 17+
52+
4953
### [Node.js](#tab/nodejs)
5054

5155
> [!NOTE]
@@ -65,15 +69,15 @@ Follow the steps in this section to instrument your application with OpenTelemet
6569

6670
#### [ASP.NET Core](#tab/aspnetcore)
6771

68-
Install the latest [Azure.Monitor.OpenTelemetry.AspNetCore](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.AspNetCore) NuGet package:
72+
Install the latest `Azure.Monitor.OpenTelemetry.AspNetCore` [NuGet package](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.AspNetCore):
6973

7074
```dotnetcli
7175
dotnet add package Azure.Monitor.OpenTelemetry.AspNetCore
7276
```
7377

7478
### [.NET](#tab/net)
7579

76-
Install the latest [Azure.Monitor.OpenTelemetry.Exporter](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.Exporter) NuGet package:
80+
Install the latest `Azure.Monitor.OpenTelemetry.Exporter` [NuGet package](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.Exporter):
7781

7882
```dotnetcli
7983
dotnet add package Azure.Monitor.OpenTelemetry.Exporter
@@ -92,6 +96,17 @@ Download the [applicationinsights-agent-3.5.3.jar](https://github.com/microsoft/
9296
> [3.2.0](https://github.com/microsoft/ApplicationInsights-Java/releases/tag/3.2.0), and
9397
> [3.1.0](https://github.com/microsoft/ApplicationInsights-Java/releases/tag/3.1.0)
9498
99+
100+
#### [Java Native](#tab/java-native)
101+
102+
For Spring Boot native applications:
103+
* [Import the OpenTelemetry Bills of Materials (BOM)](https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/getting-started/).
104+
* Add the [Spring Cloud Azure Starter Monitor](https://mvnrepository.com/artifact/com.azure.spring/cloud-starter-azure-monitor) dependency.
105+
* Follow [these instructions](/azure//developer/java/spring-framework/developer-guide-overview#configuring-spring-boot-3) for the Azure SDK JAR (Java Archive) files.
106+
107+
For Quarkus native applications:
108+
* Add the [Quarkus OpenTelemetry Exporter for Azure](https://mvnrepository.com/artifact/io.quarkiverse.opentelemetry.exporter/quarkus-opentelemetry-exporter-azure) dependency.
109+
95110
#### [Node.js](#tab/nodejs)
96111

97112
Install these packages:
@@ -202,6 +217,11 @@ Point the Java virtual machine (JVM) to the jar file by adding `-javaagent:"path
202217
> [!TIP]
203218
> If you develop a Spring Boot application, you can optionally replace the JVM argument by a programmatic configuration. For more information, see [Using Azure Monitor Application Insights with Spring Boot](./java-spring-boot.md).
204219
220+
221+
##### [Java-Native](#tab/java-native)
222+
223+
Several automatic instrumentations are enabled through configuration changes; no code changes are required
224+
205225
##### [Node.js](#tab/nodejs)
206226

207227
```typescript
@@ -222,7 +242,7 @@ from azure.monitor.opentelemetry import configure_azure_monitor
222242
# Import the tracing api from the `opentelemetry` package.
223243
from opentelemetry import trace
224244

225-
# Configure OpenTelemetry to use Azure Monitor with the 
245+
# Configure OpenTelemetry to use Azure Monitor with the
226246
# APPLICATIONINSIGHTS_CONNECTION_STRING environment variable.
227247
configure_azure_monitor()
228248

@@ -307,6 +327,10 @@ Azure Monitor OpenTelemetry sample applications are available for all supported
307327

308328
- [Java sample apps](https://github.com/Azure-Samples/ApplicationInsights-Java-Samples)
309329

330+
##### [Java Native](#tab/java-native)
331+
332+
- [Java GraalVM native sample apps](https://github.com/Azure-Samples/java-native-telemetry)
333+
310334
##### [Node.js](#tab/nodejs)
311335

312336
- [Node.js sample app](https://github.com/Azure-Samples/azure-monitor-opentelemetry-node.js)
@@ -341,12 +365,20 @@ Azure Monitor OpenTelemetry sample applications are available for all supported
341365

342366
### [Java](#tab/java)
343367

344-
- For details on adding and modifying Azure Monitor OpenTelemetry, see [Add and modify Azure Monitor OpenTelemetry](opentelemetry-add-modify.md).
368+
- See [Add and modify Azure Monitor OpenTelemetry](opentelemetry-add-modify.md) for details on adding and modifying Azure Monitor OpenTelemetry.
345369
- Review [Java autoinstrumentation configuration options](java-standalone-config.md).
346-
- To review the source code, see the [Azure Monitor Java autoinstrumentation GitHub repository](https://github.com/Microsoft/ApplicationInsights-Java).
347-
- To learn more about OpenTelemetry and its community, see the [OpenTelemetry Java GitHub repository](https://github.com/open-telemetry/opentelemetry-java-instrumentation).
348-
- To enable usage experiences, see [Enable web or browser user monitoring](javascript.md).
349-
- See the [release notes](https://github.com/microsoft/ApplicationInsights-Java/releases) on GitHub.
370+
- Review the source code in the [Azure Monitor Java autoinstrumentation GitHub repository](https://github.com/Microsoft/ApplicationInsights-Java).
371+
- Learn more about OpenTelemetry and its community in the [OpenTelemetry Java GitHub repository](https://github.com/open-telemetry/opentelemetry-java-instrumentation).
372+
- Enable usage experiences by seeing [Enable web or browser user monitoring](javascript.md).
373+
- Review the [release notes](https://github.com/microsoft/ApplicationInsights-Java/releases) on GitHub.
374+
375+
### [Java Native](#tab/java-native)
376+
- See [Add and modify Azure Monitor OpenTelemetry](opentelemetry-add-modify.md) for details on adding and modifying Azure Monitor OpenTelemetry.
377+
- Review the source code in the [Azure Monitor OpenTelemetry Distro in Spring Boot native image Java application](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/spring-cloud-azure-starter-monitor) and [Quarkus OpenTelemetry Exporter for Azure](https://github.com/quarkiverse/quarkus-opentelemetry-exporter/tree/main/quarkus-opentelemetry-exporter-azure).
378+
- Learn more about OpenTelemetry and its community in the [OpenTelemetry Java GitHub repository](https://github.com/open-telemetry/opentelemetry-java-instrumentation).
379+
- Learn more features for Spring Boot native image applications in [OpenTelemetry SpringBoot starter](https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/.)
380+
- Learn more features for Quarkus native applications in [Quarkus OpenTelemetry Exporter for Azure](https://quarkus.io/guides/opentelemetry).
381+
- Review the [release notes](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/spring/spring-cloud-azure-starter-monitor/CHANGELOG.md) on GitHub.
350382

351383
### [Node.js](#tab/nodejs)
352384

@@ -359,18 +391,18 @@ Azure Monitor OpenTelemetry sample applications are available for all supported
359391

360392
### [Python](#tab/python)
361393

362-
- For details on adding and modifying Azure Monitor OpenTelemetry, see [Add and modify Azure Monitor OpenTelemetry](opentelemetry-add-modify.md).
363-
- To review the source code and extra documentation, see the [Azure Monitor Distro GitHub repository](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry/README.md).
364-
- To see extra samples and use cases, see [Azure Monitor Distro samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-opentelemetry/samples).
365-
- See the [changelog](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry/CHANGELOG.md) on GitHub.
366-
- To install the PyPI package, check for updates, or view release notes, see the [Azure Monitor Distro PyPI Package](https://pypi.org/project/azure-monitor-opentelemetry/) page.
367-
- To become more familiar with Azure Monitor Application Insights and OpenTelemetry, see the [Azure Monitor Example Application](https://github.com/Azure-Samples/azure-monitor-opentelemetry-python).
368-
- To learn more about OpenTelemetry and its community, see the [OpenTelemetry Python GitHub repository](https://github.com/open-telemetry/opentelemetry-python).
369-
- To see available OpenTelemetry instrumentations and components, see the [OpenTelemetry Contributor Python GitHub repository](https://github.com/open-telemetry/opentelemetry-python-contrib).
370-
- To enable usage experiences, [enable web or browser user monitoring](javascript.md).
394+
- See [Add and modify Azure Monitor OpenTelemetry](opentelemetry-add-modify.md) for details on adding and modifying Azure Monitor OpenTelemetry.
395+
- Review the source code and extra documentation in the [Azure Monitor Distro GitHub repository](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry/README.md).
396+
- See extra samples and use cases in [Azure Monitor Distro samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-opentelemetry/samples).
397+
- Review the [changelog](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry/CHANGELOG.md) on GitHub.
398+
- Install the PyPI package, check for updates, or view release notes on the [Azure Monitor Distro PyPI Package](https://pypi.org/project/azure-monitor-opentelemetry/) page.
399+
- Become more familiar with Azure Monitor Application Insights and OpenTelemetry in the [Azure Monitor Example Application](https://github.com/Azure-Samples/azure-monitor-opentelemetry-python).
400+
- Learn more about OpenTelemetry and its community in the [OpenTelemetry Python GitHub repository](https://github.com/open-telemetry/opentelemetry-python).
401+
- See available OpenTelemetry instrumentations and components in the [OpenTelemetry Contributor Python GitHub repository](https://github.com/open-telemetry/opentelemetry-python-contrib).
402+
- Enable usage experiences by [enabling web or browser user monitoring](javascript.md).
371403

372404
---
373405

374406
[!INCLUDE [azure-monitor-app-insights-opentelemetry-faqs](../includes/azure-monitor-app-insights-opentelemetry-faqs.md)]
375407

376-
[!INCLUDE [azure-monitor-app-insights-opentelemetry-support](../includes/azure-monitor-app-insights-opentelemetry-support.md)]
408+
[!INCLUDE [azure-monitor-app-insights-opentelemetry-support](../includes/azure-monitor-app-insights-opentelemetry-support.md)]

0 commit comments

Comments
 (0)