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 batch exporter metrics and logging enhancements #6558

Merged
merged 5 commits into from
Jan 20, 2025

Conversation

BrynCooke
Copy link
Contributor

@BrynCooke BrynCooke commented Jan 16, 2025

When exporters fall behind they emit an error message that is not useful. It neither outputs the name of the batch processor or the has metrics on how many spans were dropped.

The message now contains the provider: OpenTelemetry trace error occurred: cannot send message to batch processor '<provider>-tracing' as the channel is full

In addition, a new metric has been added:

  • apollo.router.telemetry.batch_processor.errors - The number of errors encountered by exporter batch processors.
    • name: One of apollo-tracing, datadog-tracing, otlp-tracing, zipkin-tracing.
    • error = One of channel closed, channel full.

Which allows users to determine which batch processor needs modifying and an indicator of how much.


Checklist

Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.

  • Changes are compatible1
  • Documentation2 completed
  • Performance impact assessed and acceptable
  • Tests added and passing3
    • Unit Tests
    • Integration Tests
    • Manual Tests

Exceptions

Note any exceptions here

Notes

Footnotes

  1. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this.

  2. Configuration is an important part of many changes. Where applicable please try to document configuration examples.

  3. Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.

@BrynCooke BrynCooke requested review from a team as code owners January 16, 2025 15:52

This comment has been minimized.

@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Jan 16, 2025

⚠️ Docs preview not attached to branch

The preview was not built because the PR's base branch dev is not in the list of sources.

An Apollo team member can comment one of the following commands to dictate which branch to attach the preview to:

  • !docs set-base-branch next
  • !docs set-base-branch main

Build ID: 19720e4e72c479efc4c78cb2

@BrynCooke BrynCooke force-pushed the bryn/named_runtime_channel branch from 008e6a0 to 88d8e62 Compare January 16, 2025 15:53
@BrynCooke BrynCooke requested review from garypen and bnjjj January 16, 2025 15:53
@BrynCooke BrynCooke force-pushed the bryn/named_runtime_channel branch 4 times, most recently from 8420ec4 to 06faaab Compare January 18, 2025 17:41
…orters are falling behind.

The message now contains the provider: `OpenTelemetry trace error occurred: cannot send message to batch processor '<provider>-tracing' as the channel is full`

In addition, a new metric has been added to `apollo.router.telemetry.batch_processor.errors`. Which allows users to determine which batch processor needs modifying and an indicator of how much.
@BrynCooke BrynCooke force-pushed the bryn/named_runtime_channel branch from ad95f26 to 2e90737 Compare January 18, 2025 19:19
@BrynCooke BrynCooke added the backport-1.x Backport this PR to 1.x label Jan 20, 2025
@BrynCooke
Copy link
Contributor Author

@Mergifyio backport 1.x

Copy link
Contributor

mergify bot commented Jan 20, 2025

backport 1.x

✅ Backports have been created

@BrynCooke BrynCooke merged commit 26d7743 into dev Jan 20, 2025
16 checks passed
@BrynCooke BrynCooke deleted the bryn/named_runtime_channel branch January 20, 2025 16:04
mergify bot pushed a commit that referenced this pull request Jan 20, 2025
Co-authored-by: bryn <bryn@apollographql.com>
(cherry picked from commit 26d7743)
BrynCooke added a commit that referenced this pull request Jan 22, 2025
…6592)

Co-authored-by: Bryn Cooke <BrynCooke@gmail.com>
Co-authored-by: bryn <bryn@apollographql.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-1.x Backport this PR to 1.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants