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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

BrynCooke
Copy link
Contributor

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 to apollo.router.telemetry.batch_processor.errors. 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: a2f06158d1a9e0956b9ca47c

@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 3 times, most recently from 5a9f19d to 55b20a2 Compare January 17, 2025 23:32
Copy link

mergify bot commented Jan 17, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟠 ❄️ Ensure queue is not active [Scheduled Freeze]

Waiting for scheduled freeze to end.

A freeze on the repository is scheduled for the following reason: Ensure queue is not active

  • current-datetime < 2025-01-17T23:40:20.870992[Europe/London]

@BrynCooke BrynCooke force-pushed the bryn/named_runtime_channel branch 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
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.

2 participants