Skip to content
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

add support of metrics #738

Merged
merged 21 commits into from Apr 6, 2022
Merged

add support of metrics #738

merged 21 commits into from Apr 6, 2022

Conversation

bnjjj
Copy link
Contributor

@bnjjj bnjjj commented Mar 25, 2022

I spotted some bugs I fixed:

  • I now trim the query to check if the query is empty or not, before we could trick the layer by using query=" "
  • I put the original context in the RouterResponse when it's returning an error
  • close tower buffers of 20_000 should be simplified #772
  • Fix documentation issues

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
@github-actions

This comment has been minimized.

@netlify
Copy link

netlify bot commented Mar 25, 2022

Deploy Preview for apollo-router-docs canceled.

Name Link
🔨 Latest commit 807e809
🔍 Latest deploy log https://app.netlify.com/sites/apollo-router-docs/deploys/624c683141d9a40009f9e918

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
@BrynCooke
Copy link
Contributor

@garypen had the idea that a plugin may expose a service at a predictable path. This seems like a better idea than fully dynamic routing. Then if plugins want to expose multiple endpoints they can use steer to route to different paths internally..

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
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.

Looks good. I've got a few NIT style comments, but the main bit I don't understand is the question about the otel metrics_exporter. Perhaps we can talk about that in huddle?

apollo-router-core/src/plugin.rs Outdated Show resolved Hide resolved
apollo-router-core/src/services/mod.rs Show resolved Hide resolved
apollo-router/src/plugins/telemetry/metrics.rs Outdated Show resolved Hide resolved
apollo-router/src/plugins/telemetry/otlp/mod.rs Outdated Show resolved Hide resolved
apollo-router/src/state_machine.rs Outdated Show resolved Hide resolved
apollo-router/src/state_machine.rs Outdated Show resolved Hide resolved
apollo-router/src/warp_http_server_factory.rs Outdated Show resolved Hide resolved
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
@bnjjj bnjjj linked an issue Apr 1, 2022 that may be closed by this pull request
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
@bnjjj bnjjj marked this pull request as ready for review April 4, 2022 16:00
@bnjjj bnjjj self-assigned this Apr 4, 2022
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
@bnjjj bnjjj changed the title add support of metrics WIP add support of metrics Apr 5, 2022
Copy link
Contributor

@o0Ignition0o o0Ignition0o left a comment

Choose a reason for hiding this comment

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

I probably missed a conversation so I m going to ask here: did we revert from telemetry: to plugins / apollo.telemetry: ? why ? ^^'

docs/source/configuration/header-propagation.mdx Outdated Show resolved Hide resolved
docs/source/configuration/header-propagation.mdx Outdated Show resolved Hide resolved
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Copy link
Contributor

@o0Ignition0o o0Ignition0o left a comment

Choose a reason for hiding this comment

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

A few comments here and there, but those are more questions, it LGTM overall.

Solid work btw, that's uh quite a big pull request, so GG 🎉

apollo-router/src/plugins/telemetry/mod.rs Outdated Show resolved Hide resolved
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
@bnjjj bnjjj requested a review from Geal April 5, 2022 16:03
@bnjjj bnjjj merged commit 3bc0007 into main Apr 6, 2022
@bnjjj bnjjj deleted the bnjjj/feat_84 branch April 6, 2022 08:32
@Geal Geal added this to the v0.1.0-preview.3 milestone Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tower buffers of 20_000 should be simplified Event metrics
5 participants