mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Polish "Configure OpenTelemetry semantic conventions"
See gh-49241 Signed-off-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
This commit is contained in:
+4
-2
@@ -731,7 +731,8 @@ NOTE: javadoc:org.springframework.jms.core.JmsClient[] and javadoc:org.springfra
|
||||
|
||||
Auto-configuration enables the instrumentation of all requests handled by Spring MVC controllers and functional handlers.
|
||||
By default, metrics are generated with the name, `http.server.requests`.
|
||||
You can customize the name by setting the configprop:management.observations.http.server.requests.name[] property.
|
||||
If you are xref:actuator/observability.adoc#actuator.observability.semantic-conventions[using Micrometer's semantic conventions], set the configprop:management.observations.http.server.requests.name[] property to customize the name.
|
||||
If you are using OpenTelemtry's semantic conventions, the name cannot be customized.
|
||||
|
||||
See the {url-spring-framework-docs}/integration/observability.html#observability.http-server.servlet[Spring Framework reference documentation for more information on produced observations].
|
||||
|
||||
@@ -751,7 +752,8 @@ To customize the filter, provide a javadoc:org.springframework.context.annotatio
|
||||
|
||||
Auto-configuration enables the instrumentation of all requests handled by Spring WebFlux controllers and functional handlers.
|
||||
By default, metrics are generated with the name, `http.server.requests`.
|
||||
You can customize the name by setting the configprop:management.observations.http.server.requests.name[] property.
|
||||
If you are xref:actuator/observability.adoc#actuator.observability.semantic-conventions[using Micrometer's semantic conventions], set the configprop:management.observations.http.server.requests.name[] property to customize the name.
|
||||
If you are using OpenTelemtry's semantic conventions, the name cannot be customized.
|
||||
|
||||
See the {url-spring-framework-docs}/integration/observability.html#observability.http-server.reactive[Spring Framework reference documentation for more information on produced observations].
|
||||
|
||||
|
||||
+15
-3
@@ -101,14 +101,26 @@ In that case you can either disable the automatic instrumentation using xref:ref
|
||||
|
||||
|
||||
|
||||
[[actuator.observability.semantic-conventions]]
|
||||
== Semantic Conventions
|
||||
|
||||
Semantic conventions govern things like metric names and tag names and values.
|
||||
By default, the conventions defined by Micrometer and the various Spring projects are used.
|
||||
To switch to OpenTelemetry's conventions, set configprop:management.observations.conventions[] to `open-telemetry`.
|
||||
OpenTelemetry conventions are limited to those that are stable.
|
||||
When using OpenTelemetry's conventions, note that certain properties for customizing meter names and the like will no longer take effect.
|
||||
|
||||
|
||||
|
||||
[[actuator.observability.opentelemetry]]
|
||||
== OpenTelemetry Support
|
||||
|
||||
NOTE: There are several ways to support https://opentelemetry.io/[OpenTelemetry] in your application.
|
||||
You can use the https://opentelemetry.io/docs/zero-code/java/agent/[OpenTelemetry Java Agent] or the https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/[OpenTelemetry Spring Boot Starter],
|
||||
which are supported by the OTel community; the metrics and traces use the semantic conventions defined by OTel libraries.
|
||||
This documentation describes OpenTelemetry as officially supported by the Spring team, using Micrometer and the OTLP exporter;
|
||||
the metrics and traces use the semantic conventions described in the Spring projects documentation, such as {url-spring-framework-docs}/integration/observability.html[Spring Framework].
|
||||
which are supported by the OTel community.
|
||||
In this case, the metrics and traces always use the semantic conventions defined by OTel libraries.
|
||||
This documentation describes OpenTelemetry as officially supported by the Spring team, using Micrometer and the OTLP exporter.
|
||||
In this case, the metrics and traces use the semantic conventions described in the Spring projects documentation, such as {url-spring-framework-docs}/integration/observability.html[Spring Framework], but can be <<actuator.observability.semantic-conventions, configured>> to use OpenTelemetry's stable conventions.
|
||||
|
||||
Spring Boot's actuator module includes basic support for OpenTelemetry.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user