Skip to content

How to see GraphQL specific metrics? #1227

Answered by dariuszkuc
IvBre asked this question in Q&A
Discussion options

You must be logged in to vote

Hello 👋
Similar to that graphql-java-kickstart project, we also rely on graphql-java for query execution logic. This means that you can utilize Instrumentation mechanism to "observe the execution of a query and also change the runtime behaviour".

e.g. graphql-java-kickstart project provides
https://github.com/graphql-java-kickstart/graphql-spring-boot/blob/master/graphql-spring-boot-autoconfigure/src/main/java/graphql/kickstart/autoconfigure/web/servlet/metrics/MetricsInstrumentation.java and you could create something similar in your repo. If you are using graphql-kotlin-spring-server then if you create instrumentation bean it will be automatically picked up by the autoconfiguration (htt…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@IvBre
Comment options

@smyrick
Comment options

@IvBre
Comment options

Answer selected by smyrick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1226 on July 22, 2021 15:37.