Skip to content

Added Apollo Tracing support for @defer.#2190

Merged
BrynCooke merged 5 commits intodevfrom
bryncooke/defer-tracing
Dec 2, 2022
Merged

Added Apollo Tracing support for @defer.#2190
BrynCooke merged 5 commits intodevfrom
bryncooke/defer-tracing

Conversation

@BrynCooke
Copy link
Contributor

@BrynCooke BrynCooke commented Dec 1, 2022

You can now view traces in Apollo Studio as normal.

Fixes #1600

The main file to review is: apollo-router/src/plugins/telemetry/mod.rs
I've added a bunch of testing, but have not enhanced the jaeger test as I think we want to use tracing test for this.

@BrynCooke BrynCooke force-pushed the bryncooke/defer-tracing branch from b77af19 to 5003bb9 Compare December 1, 2022 17:05
@BrynCooke BrynCooke self-assigned this Dec 1, 2022
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this option to allow us to run tests until we have upgraded the project for new cargo about.

You can now view traces in Apollo Studio as normal.

Fixes #1600
@BrynCooke BrynCooke force-pushed the bryncooke/defer-tracing branch from 6de4977 to 85356d4 Compare December 2, 2022 09:12
bryn added 3 commits December 2, 2022 10:40
Fix missing variables that were:
1. being serialized incorrectly when being placed on a span.
2. being searched for in the request span rather than the supergraph

Make tests better by using insta redaction.
Fixes #2186
Copy link
Contributor

@garypen garypen left a comment

Choose a reason for hiding this comment

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

Just one question. The span stuff is hairy, but I think the changes might have cleaned things up there.

@BrynCooke BrynCooke merged commit 728552f into dev Dec 2, 2022
@BrynCooke BrynCooke deleted the bryncooke/defer-tracing branch December 2, 2022 12:35
@BrynCooke BrynCooke added this to the v1.5.0 milestone Dec 3, 2022
@garypen garypen added this to the v1.5.0 milestone Dec 5, 2022
@BrynCooke BrynCooke modified the milestone: v1.5.0 Dec 5, 2022
@BrynCooke BrynCooke mentioned this pull request Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No variables present in the Apollo Studio even with send_variable_values set Defer: ftv1 support

4 participants