in spring server.. how can i set up a "filter" tha...
# graphql-kotlin
n
in spring server.. how can i set up a "filter" that can introspect all incoming graphql requests? i need to add spans with sleuth/brave and just cannot figure out where to hook into edit: found it.. this sample hould help me get started: https://github.com/ExpediaGroup/graphql-kotlin/blob/master/examples/server/spring-[…]rver/spring/instrumentation/TrackTimesInvokedInstrumentation.kt still not quite sure how to only extract the query name..
s
Yep the best way is to probably use instrumentation from
graphql-java
You can see their docs here: https://www.graphql-java.com/documentation/v16/instrumentation/ It looks like
beginExecution
parameter
InstrumentationExecutionParameters
has the operation name