Skip to content

Conversation

@JBAhire
Copy link
Member

@JBAhire JBAhire commented Aug 25, 2020

  • Added one line description for GraphQL service.
  • Added queries section which lists key queries across main screens including:
    • Get all traces in provided time range
    • Find trace using TraceID
    • Get all services your application is using
    • Get all backends your application is using
    • Get all API's your application is using
    • Get service and backend dependency graph

@codecov
Copy link

codecov bot commented Aug 25, 2020

Codecov Report

❗ No coverage uploaded for pull request base (main@45a062d). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #21   +/-   ##
=======================================
  Coverage        ?   81.25%           
  Complexity      ?        2           
=======================================
  Files           ?        2           
  Lines           ?       32           
  Branches        ?        0           
=======================================
  Hits            ?       26           
  Misses          ?        6           
  Partials        ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 45a062d...871bed3. Read the comment docs.

@JBAhire JBAhire added the documentation Improvements or additions to documentation label Aug 25, 2020
Copy link
Contributor

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, though I must concede the lack of data model seems troubling to reason with. It would be nice to have a link that can describe the models one can return (in a different PR or later)

) {
results {
id
apiName: attribute(key: "apiName")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this attribute might not be around I think.

@JBAhire JBAhire merged commit 7c18898 into main Aug 25, 2020
@JBAhire JBAhire deleted the updating-readme branch August 25, 2020 09:18
### 1. Get all traces in provided time range

```graphql
curl -s localhost:2020/graphql -H 'Content-Type: application/graphql' -d\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I think it's pretty uncommon to use curl to interface with graphql, although of course workable. I would suspect most readers would use a graphql client. That is to say, the curl part of the doc feels like just noise to me and I think we can just document the queries.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Until we have a proper user capable api, I think this is better than nothing as currently people use the zipkin or jaeger apis to poke their systems

We will be using the trace ID and the trace in time range ones for testing, so these two are helpful for examples. It took a very long time to even figure these out. I actually was unable to find anyone who used GraphQL before.

Granted some of the ancillary, repetitive queries could easily be grouped up. Ex get entity name: example of api, endpoint, backend. Agree on that for sure.. pruning sounds fine!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely better than nothing! I guess it gets more to the purpose here - if trying to give a one liner sanity check for things like a health check, curl makes sense- everyone has it and can just copy paste.

If trying to actually work with graphql, there are many interactive clients that are much easier to work with and make things discoverable, include the schema etc. So I guess the primitives I'd expect in the docs are the queries more than the curl commands. Anyway, a nit.

image

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Aug 26, 2020 via email

skjindal93 pushed a commit that referenced this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a README that references somehow the key primitives this presents for the UI

5 participants