GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(node): Allow to configure `maxSpanWaitDuration` by mydea · Pull Request #12492 · getsentry/sentry-javascript

Conversation

@mydea

@mydea mydea commented Jun 14, 2024

Copy link
Copy Markdown
Member

This adds a new config option for @sentry/node, maxSpanWaitDuration.

By configuring this, you can define how long the SDK waits for a finished spans parent span to be finished before we discard this.

Today, this defaults to 5 min, so if a span is finished and its parent span is not finished within 5 minutes, the child span will be discarded. We do this to avoid memory leaks, as parent spans may be dropped/lost and thus child spans would be kept in memory forever.

However, if you actually have very long running spans, they may be incorrectly dropped due to this. So now, you can configure your SDK to have a longer wait duration.

Fixes #12491

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rahul-kumar-saini reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@mydea
feat(node): Allow to configure maxSpanWaitDuration
cef4ab0
@mydea
mydea requested a review from AbhiPrasad June 14, 2024 08:38
@mydea mydea self-assigned this Jun 14, 2024
@github-actions

github-actions Bot commented Jun 14, 2024

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
@sentry/browser 22.04 KB (0%)
@sentry/browser (incl. Tracing) 33.23 KB (0%)
@sentry/browser (incl. Tracing, Replay) 68.95 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.27 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 73.02 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 85.17 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 87.01 KB (0%)
@sentry/browser (incl. metrics) 26.23 KB (0%)
@sentry/browser (incl. Feedback) 38.24 KB (0%)
@sentry/browser (incl. sendFeedback) 26.63 KB (0%)
@sentry/browser (incl. FeedbackAsync) 31.18 KB (0%)
@sentry/react 24.81 KB (0%)
@sentry/react (incl. Tracing) 36.27 KB (0%)
@sentry/vue 26.05 KB (0%)
@sentry/vue (incl. Tracing) 35.08 KB (0%)
@sentry/svelte 22.17 KB (0%)
CDN Bundle 23.39 KB (0%)
CDN Bundle (incl. Tracing) 34.91 KB (0%)
CDN Bundle (incl. Tracing, Replay) 69.02 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 74.15 KB (0%)
CDN Bundle - uncompressed 68.71 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 103.3 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 213.75 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 226.21 KB (0%)
@sentry/nextjs (client) 35.63 KB (0%)
@sentry/sveltekit (client) 33.86 KB (0%)
@sentry/node 111.98 KB (+0.03% 🔺)
@sentry/node - without tracing 89.46 KB (+0.04% 🔺)
@sentry/aws-serverless 98.52 KB (+0.04% 🔺)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

AbhiPrasad
AbhiPrasad approved these changes Jun 14, 2024
View reviewed changes
@AbhiPrasad

AbhiPrasad commented Jun 14, 2024

Copy link
Copy Markdown
Contributor

Needs docs changes too!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rahul-kumar-saini rahul-kumar-saini mentioned this pull request Jun 14, 2024
SDK 8.x SpanExporter bug #12498
Closed
3 tasks done
@mydea
mydea merged commit 1b6c22e into develop Jun 17, 2024
@mydea
mydea deleted the fn/maxSpanDuration branch June 17, 2024 11:51
mydea added a commit that referenced this pull request Jun 17, 2024
@mydea
Revert "feat(node): Allow to configure maxSpanWaitDuration (#12492)"
9bb9b0e
This reverts commit 1b6c22e.
@mydea mydea mentioned this pull request Jun 17, 2024
Revert "feat(node): Allow to configure maxSpanWaitDuration" #12511
Merged
mydea added a commit that referenced this pull request Jun 18, 2024
@mydea
Revert "feat(node): Allow to configure maxSpanWaitDuration" (#12511)
ff0d9c1
Reverts #12492

Instead we'll do
#12510, which
should work much better.
@lforst lforst mentioned this pull request Jun 24, 2024
feat(node): Allow to configure maxSpanWaitDuration #12610
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@AbhiPrasad AbhiPrasad AbhiPrasad approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@mydea mydea

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

SentrySpanExporter drops child spans if the root operation takes longer than 5 minutes

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@mydea @AbhiPrasad
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.