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 — Revert "feat(core): Add `parentSpan` option to `startSpan*` APIs" by AbhiPrasad · Pull Request #12587 · getsentry/sentry-javascript

Conversation

@AbhiPrasad

@AbhiPrasad AbhiPrasad commented Jun 20, 2024

Copy link
Copy Markdown
Contributor

Reverts #12567

Seems to have introduced test failures with esm preloading: https://github.com/getsentry/sentry-javascript/actions/runs/9599487906/job/26474052394

reverting this so we can unblock a release, we can investigate deeper afterwards.

Sorry, something went wrong.

Uh oh!

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

All reactions
@AbhiPrasad
Revert "feat(core): Add parentSpan option to startSpan* APIs (#12567
368bfaa
)"

This reverts commit 0019309.
@AbhiPrasad
AbhiPrasad requested review from a team and mydea June 20, 2024 15:13
@AbhiPrasad AbhiPrasad self-assigned this Jun 20, 2024
@AbhiPrasad
AbhiPrasad requested review from stephanie-anderson and removed request for a team June 20, 2024 15:13
mydea
mydea approved these changes Jun 20, 2024
View reviewed changes
@AbhiPrasad
AbhiPrasad enabled auto-merge (squash) June 20, 2024 15:20
@github-actions

github-actions Bot commented Jun 20, 2024

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
@sentry/browser 22.22 KB (0%)
@sentry/browser (incl. Tracing) 33.27 KB (-0.11% 🔽)
@sentry/browser (incl. Tracing, Replay) 69.05 KB (-0.06% 🔽)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.37 KB (-0.07% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) 73.11 KB (-0.04% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) 85.27 KB (-0.05% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 87.09 KB (-0.09% 🔽)
@sentry/browser (incl. metrics) 26.42 KB (-0.29% 🔽)
@sentry/browser (incl. Feedback) 38.42 KB (0%)
@sentry/browser (incl. sendFeedback) 26.85 KB (0%)
@sentry/browser (incl. FeedbackAsync) 31.42 KB (0%)
@sentry/react 24.96 KB (0%)
@sentry/react (incl. Tracing) 36.32 KB (-0.1% 🔽)
@sentry/vue 26.23 KB (-0.36% 🔽)
@sentry/vue (incl. Tracing) 35.13 KB (-0.09% 🔽)
@sentry/svelte 22.35 KB (0%)
CDN Bundle 23.41 KB (0%)
CDN Bundle (incl. Tracing) 34.95 KB (-0.27% 🔽)
CDN Bundle (incl. Tracing, Replay) 69.08 KB (-0.13% 🔽)
CDN Bundle (incl. Tracing, Replay, Feedback) 74.25 KB (-0.12% 🔽)
CDN Bundle - uncompressed 68.76 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 103.41 KB (-0.2% 🔽)
CDN Bundle (incl. Tracing, Replay) - uncompressed 213.88 KB (-0.1% 🔽)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 226.47 KB (-0.09% 🔽)
@sentry/nextjs (client) 36.2 KB (-0.1% 🔽)
@sentry/sveltekit (client) 33.9 KB (-0.14% 🔽)
@sentry/node 112.94 KB (-0.05% 🔽)
@sentry/node - without tracing 90.35 KB (-0.05% 🔽)
@sentry/aws-serverless 99.44 KB (-0.05% 🔽)
All reactions

Sorry, something went wrong.

Uh oh!

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

@AbhiPrasad

AbhiPrasad commented Jun 20, 2024

Copy link
Copy Markdown
Contributor Author

Okay so it's not this change, given the preload PR is still failing. I'm going to disable the test instead.

https://github.com/getsentry/sentry-javascript/actions/runs/9599998815/job/26475852827?pr=12587

Running 4 tests using 1 worker

  ✓  1 [chromium] › server.test.ts:4:5 › Should record exceptions captured inside handlers (199ms)
  ✓  2 [chromium] › server.test.ts:14:5 › Should record a transaction for a parameterless route (193ms)
  ✓  3 [chromium] › server.test.ts:24:5 › Should record a transaction for route with parameters (205ms)
  ✘  4 [chromium] › server.test.ts:125:5 › Should record spans from http instrumentation (145ms)


  1) [chromium] › server.test.ts:125:5 › Should record spans from http instrumentation ─────────────

    Error: expect(received).toEqual(expected) // deep equality

    Expected: {"data": {"http.flavor": "1.1", "http.host": "example.com:80", "http.method": "GET", "http.response.status_code": 200, "http.response_content_length_uncompressed": Any<Number>, "http.status_code": 200, "http.status_text": "OK", "http.target": "/", "http.url": "http://example.com/", "net.peer.ip": Any<String>, "net.peer.name": "example.com", "net.peer.port": 80, "net.transport": "ip_tcp", "otel.kind": "CLIENT", "sentry.op": "http.client", "sentry.origin": "auto.http.otel.http", "url": "http://example.com/"}, "description": "GET http://example.com/", "op": "http.client", "origin": "auto.http.otel.http", "parent_span_id": Any<String>, "span_id": Any<String>, "start_timestamp": Any<Number>, "status": "ok", "timestamp": Any<Number>, "trace_id": Any<String>}
    Received: undefined

      134 |   const httpClientSpan = transactionEvent.spans?.find(span => span.op === 'http.client');
      135 |
    > 136 |   expect(httpClientSpan).toEqual({
          |                          ^
      137 |     span_id: expect.any(String),
      138 |     trace_id: expect.any(String),
      139 |     data: {

        at /home/runner/work/sentry-javascript/sentry-javascript/dev-packages/e2e-tests/test-applications/node-express-esm-preload/tests/server.test.ts:136:26
All reactions

Sorry, something went wrong.

Uh oh!

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

@AbhiPrasad AbhiPrasad closed this Jun 20, 2024
auto-merge was automatically disabled June 20, 2024 15:46

Pull request was closed

@AbhiPrasad AbhiPrasad mentioned this pull request Jun 20, 2024
Renable http instrumentation test for node-express-esm-preload #12590
Closed
@AbhiPrasad
AbhiPrasad deleted the revert-12567-fn/startSpanParent branch June 24, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mydea mydea mydea approved these changes
@stephanie-anderson stephanie-anderson Awaiting requested review from stephanie-anderson stephanie-anderson was automatically assigned from getsentry/team-javascript-sdks

Uh oh!

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

Assignees

@AbhiPrasad AbhiPrasad

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

2 participants

@AbhiPrasad @mydea
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.