Comments (7)
Hey, thanks for the suggestion. I agree that this would be a good addition to GraphQL-Ruby. I'll take a look at the reporting requirements and follow up here!
from graphql-ruby.
@rmosolgo I started working on it few days ago and like you said it could be intense! 😄
But anyway I can definitely try to help on this in the comming weeks. It's not a promess since I'm quite busy on my side too but I'll do my best to open a PR as soon as I've something acceptable 😅.
@mjfaga keep this feed updated if you guys decide to look into this too!
from graphql-ruby.
Hey there! I am a Solutions Architect at Apollo and I just wanted to chime in to say that we actually don't expect many GraphQL libraries to adopt sending metrics to GraphOS. Instead we make it easier by shipping all this code in the Apollo Router and it can be the central place to track operation usage and talk with GraphOS. You event don't need to use Federation at all to use the Router and track you Ruby servers operations.
What can be additionally supported though is federated tracing (ftv1). Today that is handled by an extension library https://github.com/Gusto/apollo-federation-ruby/
That library is implementing the extra metrics here: https://www.apollographql.com/docs/federation/metrics/
With that Federation library + Apollo Router you will be able to
- See operation count
- See the operations coming in
- See the clients making request
- Track the field/resolver level timing and timings across subgraphs
- Run schema checks through GraphOS to validate breaking changes
What could be considered for this library is to add the Federation support as first-party support so server maintainers don't need to include two Ruby libraries to do Federation GraphQL
from graphql-ruby.
+1 my team and I would be super interested as well
from graphql-ruby.
This is ... intense. It's not like sending some custom metrics by the ruby DataDog agent or NewRelic agent -- you've got to write the agent: protobuf client, HTTP communications, batching, signature generation ... phew! It would be quite a bit of work. I'm open to including it in this library or in a different gem, but I probably won't be able to make time for it for a while. I'm happy to keep this issue open for visibility and further discussion in the meantime.
from graphql-ruby.
Yeah, totally fair. I saw the same thing and decided to open this issue to see if you would land on the same thing or would see something I didn’t
Depending on where we go with things here at Hunt Club, we may make this investment. Given the dependencies required, a separate gem feels appropriate here so that the base implementation doesn't carry that around.
Cool keeping open for now and we can coordinate as needed
from graphql-ruby.
@smyrick Nice! Thanks for this great feedback, I'll definitely look into it!
from graphql-ruby.
Related Issues (20)
- Performance of Ruby GraphQL vs. Node GraphQL HOT 4
- use(GraphQL::Tracing::NewRelicTracing, set_transaction_name: true) doesn't work with NewRelic(newrelic_rpm) v9+ HOT 3
- PageInfo#total - should it return a total without nodes field or page parameters defined? HOT 2
- Executing mutations outside of the Graph HOT 2
- No such type XXXX, so it can't be a fragment condition HOT 2
- C-Parser coerces zero-padded integers into floats HOT 1
- Current relay v15 compiler doesn't support `--persist-output` option HOT 1
- edge_class is populating as nil after 2.x upgrade HOT 2
- undefined method `to_type_signature' for #<LateBoundType @name=__Field> HOT 4
- [ENTERPRISE] Changesets don't see new input objects for inputs of mutations HOT 2
- Improve "field doesn't exist on type" errors by suggesting camelcasing HOT 3
- Invisible object class makes interfaces ivislbe for all objects that extend it HOT 1
- Extensions only on requests? HOT 4
- [PRO] Configure scalar behavior with schema directives HOT 13
- Default register_connection_implementation should not overwrite HOT 1
- "Errors as data" from within `prepare` blocks HOT 1
- `GraphQL::Schema.orphan_types` does not work for scalars HOT 2
- LocalJumpError: no block given (yield) (LocalJumpError) HOT 5
- Fields validation - only one error at a time, the other errors are ignored HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-ruby.