You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inherit local context from environment in instrumentation
Prior to this commit, a `DataFetcher` instrumented by the
`GraphQlObservationInstrumentation` would incorrectly overwrite the
local context when:
* the `DataFetcher` returns a value object (i.e. not a
`DataFetcherResult`)
* the given `DatFetchingEnvironment` has an existing local context
with values
For this case, the instrumentation would create a new local context but
would not inherit from the existing local context.
See gh-761
Copy file name to clipboardExpand all lines: spring-graphql/src/main/java/org/springframework/graphql/observation/GraphQlObservationInstrumentation.java
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -155,13 +155,13 @@ public DataFetcher<?> instrumentDataFetcher(DataFetcher<?> dataFetcher,
0 commit comments