-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add apollo_operation_id
#3803
Labels
documentation
Improvements or additions to documentation
Comments
abernix
added a commit
that referenced
this issue
Sep 11, 2023
This corrects the example for #3586 which inadvertently suggested using `<your_graph_variant>` twice instead of `<your_graph_id>` and (separately) `<your_graph_variant>`: https://studio.apollographql.com/graph/<your_graph_id>/variant/<your_graph_variant>/operations?query=<apollo_operation_id> This doesn't replace the need to document this in #3803. 😄
abernix
added a commit
that referenced
this issue
Sep 12, 2023
This corrects the CHANGELOG entry for #3586 which inadvertently suggested using `<your_graph_variant>` twice instead of `<your_graph_id>` and (separately) `<your_graph_variant>`: ``` https://studio.apollographql.com/graph/<your_graph_id>/variant/<your_graph_variant>/operations?query=<apollo_operation_id> ``` This doesn't replace the need to document this in #3803. 😄
garypen
pushed a commit
that referenced
this issue
Sep 12, 2023
This corrects the CHANGELOG entry for #3586 which inadvertently suggested using `<your_graph_variant>` twice instead of `<your_graph_id>` and (separately) `<your_graph_variant>`: ``` https://studio.apollographql.com/graph/<your_graph_id>/variant/<your_graph_variant>/operations?query=<apollo_operation_id> ``` This doesn't replace the need to document this in #3803. 😄
6 tasks
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In #3586, @o0Ignition0o introduced the
apollo_operation_id
— a user-accessible attribute that can be fetched from the context and used to build a durable link to the Operation page in Studio. This is useful for emitting into logs or, e.g., as an attribute on trace spans for debugging purposes. We may make this available in more places in the future!Using two other pieces of information from the graph reference (the
your-graph@current
option that you run your Router with), this newapollo_operation_id
value can be used to generate the full URL using the following convention:Where:
{{your_graph_id}}
(This is the part to the left of the@
sign in your "graph reference" (i.e., theyour-graph
part ofyour-graph@current
){{your_graph_variant}}
(This is the part to the right of the@
sign in your "graph reference" (i.e., thecurrent
part ofyour-graph@current
){{apollo_operation_id}}
this is the value read from the context'sapollo_operation_id
property.No curly braces should be present in the actual URL. 😄
The text was updated successfully, but these errors were encountered: