Update @EnableOpenTelemetry javadoc (#11799)

This commit is contained in:
Jean Bisutti 2024-07-11 19:52:42 +02:00 committed by GitHub
parent 9bbfe7fe4e
commit 54622bed61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,10 @@ import java.lang.annotation.Target;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/** Auto-configures OpenTelemetry. Enables OpenTelemetry in Spring applications */
/**
* Convenient annotation to leverage Spring autoconfiguration for OpenTelemetry in non-Spring Boot
* projects.
*/
@Configuration
@ComponentScan(basePackages = "io.opentelemetry.instrumentation.spring.autoconfigure")
@Target(ElementType.TYPE)