https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
n

Nikky

05/18/2021, 7:40 AM
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

Shane Myrick

05/18/2021, 3:32 PM
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
5 Views