Skip to content

Commit cec31de

Browse files
committed
review updates
1 parent 54663f9 commit cec31de

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

docs/instrumentation-list.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3694,6 +3694,15 @@ libraries:
36943694
- name: spring-boot-resources
36953695
description: |
36963696
This instrumentation automatically detects the `service.name` and `service.version` for Spring Boot applications and sets them as resource attributes.
3697+
It uses the following strategies (first successful wins):
3698+
- Check for the SPRING_APPLICATION_NAME environment variable
3699+
- Check for spring.application.name system property
3700+
- Check for application.properties file on the classpath
3701+
- Check for application.properties in the current working dir
3702+
- Check for application.yml on the classpath
3703+
- Check for application.yml in the current working dir
3704+
- Check for --spring.application.name program argument (not jvm arg) via ProcessHandle
3705+
- Check for --spring.application.name program argument via sun.java.command system property
36973706
source_path: instrumentation/spring/spring-boot-resources
36983707
scope:
36993708
name: io.opentelemetry.spring-boot-resources

instrumentation/spring/spring-boot-autoconfigure/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ Auto-configures OpenTelemetry instrumentation for [spring-web](../spring-web/spr
44
, [spring-webmvc](../spring-webmvc/spring-webmvc-5.3/library),
55
and [spring-webflux](../spring-webflux/spring-webflux-5.3/library). Leverages Spring Aspect Oriented
66
Programming, dependency injection, and bean post-processing to trace spring applications. To include
7-
all features listed below use the [opentelemetry-spring-boot-starter](../starters/spring-boot-starter/README.md).
7+
all features listed below use the [opentelemetry-spring-boot-starter](https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/).
88

99
Documentation for OpenTelemetry Spring Auto-Configuration can be found [here](https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/out-of-the-box-instrumentation/).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
description: >
22
This instrumentation auto-configures OpenTelemetry instrumentation for spring-web, spring-webmvc,
33
and spring-webflux to instrument Spring Boot applications. It does not produce telemetry on its
4-
own.
4+
own. This instrumentation is mostly used as part of the Spring Boot starter.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
description: >
22
This instrumentation automatically detects the `service.name` and `service.version` for Spring
33
Boot applications and sets them as resource attributes.
4+
5+
It uses the following strategies (first successful wins):
6+
- Check for the SPRING_APPLICATION_NAME environment variable
7+
- Check for spring.application.name system property
8+
- Check for application.properties file on the classpath
9+
- Check for application.properties in the current working dir
10+
- Check for application.yml on the classpath
11+
- Check for application.yml in the current working dir
12+
- Check for --spring.application.name program argument (not jvm arg) via ProcessHandle
13+
- Check for --spring.application.name program argument via sun.java.command system property
14+

0 commit comments

Comments
 (0)