-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring Security 6.0.1 ObservationFilterChainDecorator produce wrong instrument names #12490
Comments
Hi @jzheaux , the instrument names is still invalid because the length is more than 63 characters. Here is the stack trace:
Test done with: |
Hello @rschlick I encounter this issue also, is it possible to reopen this to avoid length of more 63 characters ? Thanks |
Hi @jzheaux, could we reopen this issue? |
Hi @jzheaux, I also got the error in spring 3.0.3. Please reopen the issue |
Describe the bug
Open Telemetry Java Agent version 1.21 don't like the Instrument names produces by Spring Security 6.0 (from Class ObservationFilterChainDecorator)
Here is the WARNING Log :
The instrument name is produced by Spring Security there :
spring-security/web/src/main/java/org/springframework/security/web/ObservationFilterChainDecorator.java
Line 185 in 65b9dbf
I think this instrument name with a space in the name is not correct in term of good naming conventions or standard.
A bug ticket was opened in the Github of Open Telemetry Java Agent project : open-telemetry/opentelemetry-java-instrumentation#7448
They answered that the fix should be done in Spring Security project.
They believe :
To Reproduce
Using a simple Spring Boot 3.0.1 project with Kotlin 1.7, JDK 17, Spring Boot 3.0.1 and Spring Security 6.0 and Maven.
Using Open Telemetry java Agent v 1.21.
Application is running in a docker container, but you can reproduce the problem with a java -jar springboot.jar -javaagent:opentelemetry-javaagent-all.jar
Docker File :
Expected behavior
The expected behaviour is that Open Telemetry Java Agent doesn't create WARNING logs about Spring Security instrument names.
The text was updated successfully, but these errors were encountered: