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

Dropped * spans because maxQueueSize reached. #4184

Closed
1 of 2 tasks
jholm117 opened this issue Oct 3, 2023 · 2 comments
Closed
1 of 2 tasks

Dropped * spans because maxQueueSize reached. #4184

jholm117 opened this issue Oct 3, 2023 · 2 comments

Comments

@jholm117
Copy link

jholm117 commented Oct 3, 2023

Hello! We are seeing this error message from our otel-instrumented app with varying span amounts roughly every 5 seconds.

Dropped 2228 spans because maxQueueSize reached

I've tried increasing the maxQueueSize to 6144 (the default is 2048).

const sdk = new NodeSDK({
  autoDetectResources: true,
  traceExporter: exporter,
  spanProcessor: new BatchSpanProcessor(exporter, {
    maxQueueSize: 6144,
  }),

but this did not seem to affect the behavior at all. Is someone able to recommend a way to look into diagnosing/fixing this issue?

  • This only affects the JavaScript OpenTelemetry library
  • This may affect other libraries, but I would like to get opinions here first
@pichlermarc
Copy link
Member

pichlermarc commented Oct 3, 2023

Hi @jholm117, thanks for reaching out.

I'm closing this as a duplicate of #3094. The BatchSpanProcessor does not eager-export at the moment, which means that if the queue size is reached, it will not attempt to export but actually drop the spans that exceed the limit. There are several PRs open for #3094, so you can expect this to be addressed in an upcoming release.

@pichlermarc pichlermarc closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2023
@jholm117
Copy link
Author

Hello, unfortunately I'm still seeing this on version 1.26.0 of @opentelemetry/sdk-trace-base. Any ideas?

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

No branches or pull requests

2 participants