Skip to content

Commit

Permalink
Improve Spring Monitor documentation (#38601)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbisutti authored Feb 2, 2024
1 parent 08bd59e commit 9425815
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sdk/spring/spring-cloud-azure-starter-monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ by [following the OpenTelemetry documentation](https://opentelemetry.io/docs/ins

[Instruction][azure_native] for Spring Boot native image applications.

### Enable OpenTelemetry features

All the features described in the [OpenTelemetry Spring Boot starter][otel_spring_starter] documentation work with Azure Monitor OpenTelemetry Distro / Application Insights in Spring Boot native image Java application.

You have just to replace the `opentelemetry-spring-boot-starter` dependency by the `spring-cloud-azure-starter-monitor` one.

### Azure Monitor configuration

#### Connection String
Expand All @@ -58,10 +64,6 @@ The [Application Map](https://learn.microsoft.com/azure/azure-monitor/app/app-ma

You can set the cloud role name with the `spring.application.name` or `otel.springboot.resource.attributes.service.name` property.

### Configure the instrumentation

The Spring starter will capture HTTP requests by default. You can find on [this page][otel_spring_starter_instrumentation] how to configure additional instrumentations (JDBC, logging, ...).

### Build your Spring native application
At this step, you can build your Spring Boot native image application and start it:

Expand Down

0 comments on commit 9425815

Please sign in to comment.