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 — [Node] Refactor SpanExporter to use `getSpanDescendants()` · Issue #12510 · getsentry/sentry-javascript

[Node] Refactor SpanExporter to use getSpanDescendants() #12510

New issue
Copy link
New issue
Copy link
Closed
#12610
Closed
[Node] Refactor SpanExporter to use getSpanDescendants()#12510
#12610
Copy link
Assignees
lforst
Labels
Package-Meta: OpenTelemetry

Description

@mydea
mydea
opened on Jun 17, 2024
Issue body actions

Today, we keep all finished spans in the span exporter and build the span tree from there to send the spans as a single transactionEvent.

With changes we did in the v8 cycle, we can actually simplify this a lot - we can simply ignore all non-root spans in the span exporter, and generate the transactionEvent payload (spans) via getSpanDescendants(rootSpan) - we already keep track of the children there, so we may as well use this.

With this, we can simplify the exporter code a lot, and also remove handling around memory leaks - no need to keep a list of child spans in the exporter and clean it up.

Initially, let's drop any child spans that are not finished - we may revisit this later, but this is the easiest thing for now.

Reacted by Rahul Kumar Saini
Reacted by Rahul Kumar Saini
Reacted by Rahul Kumar Saini

Activity

  1. AbhiPrasad
    added
    Package: node
    Package-Meta: OpenTelemetry
    on Jun 17, 2024
  2. mydea
    added a commit that references this issue on Jun 18, 2024

    Revert "feat(node): Allow to configure `maxSpanWaitDuration`" (#12511)

    ff0d9c1
  3. lforst
    self-assigned this
    on Jun 19, 2024
  4. lforst
    closed this as completedin #12610on Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lforst
    lforst

Labels

Package-Meta: OpenTelemetry

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.