Closed kevinlee2198 closed 5 months ago
In your example app, you are including the dependency spring-boot-starter-graphql
, which is causing this issue (see this code). If you remove that dependency, your example app works fine.
Here is the related issue in spring-graphl.
Got it, thanks for being on top of this.
Please read our contributor guide before creating an issue.
Expected behavior
When Spring boot actuator is present, values passed to child data fetcher via
localContext
should be accessible following the documentation.Actual behavior
Values are overridden to instead be a Map containing a
SimpleObservation
value.Class cast exception then occurs follows:
Steps to reproduce
Minimal Reproducible Example: https://github.com/kevinlee2198/dgs-local-context-demo
Note: Remove the actuator dependency and the query works as expected
Note: A test case would be highly appreciated, but we understand that's not always possible