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 — fix(node): Ensure `autoSessionTracking` is enabled by default by mydea · Pull Request #12790 · getsentry/sentry-javascript

Conversation

@mydea

@mydea mydea commented Jul 8, 2024

Copy link
Copy Markdown
Member

I noticed that we were not actually enabling auto session tracking correctly in node, because we did not check on the correct options object 😬

Sorry, something went wrong.

Uh oh!

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

All reactions
@mydea
mydea requested review from Lms24, andreiborza and lforst July 8, 2024 08:00
@mydea mydea self-assigned this Jul 8, 2024
mydea
mydea commented Jul 8, 2024
View reviewed changes
Comment thread packages/node/src/sdk/index.ts
getDefaultIntegrationsImpl: (options: Options) => Integration[],
): NodeClient {
const clientOptions = getClientOptions(options, getDefaultIntegrationsImpl);
const options = getClientOptions(_options, getDefaultIntegrationsImpl);

@mydea mydea Jul 8, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't really see this here, but we've been checking properties further below in init based off options, not clientOptions, leading to us not using the defaults defined in getClientOptions. IMHO it is confusing to have to options objects and check everything on clientOptions (which is also why this even happened in the first place...) so I changed this to just call this options and use it everywhere (we never really need to access the unprocessed options again afterwards anyhow...)

Sorry, something went wrong.

Uh oh!

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

All reactions
Lms24
Lms24 approved these changes Jul 8, 2024
View reviewed changes

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! (was this reported in an issue?)

Sorry, something went wrong.

Uh oh!

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

All reactions
AbhiPrasad
AbhiPrasad approved these changes Jul 8, 2024
View reviewed changes

@AbhiPrasad AbhiPrasad left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we can track this on looker somehow

Sorry, something went wrong.

Uh oh!

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

All reactions
@mydea

mydea commented Jul 8, 2024

Copy link
Copy Markdown
Member Author

Good catch! (was this reported in an issue?)

Nope, just noticed this while I was preparing the walkthrough for the Node SDK 😅

All reactions

Sorry, something went wrong.

Uh oh!

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

mydea added 2 commits July 9, 2024 10:36
@mydea
fix(node): Ensure node options are correctly used in init
1b13ab2
@mydea
ignore session & sessions by default
1da5e09
@mydea

mydea commented Jul 9, 2024

Copy link
Copy Markdown
Member Author

Note: I also updated the node integration tests to ignore session & sessions envelopes by default, instead of manually ignoring these everywhere. Now, instead you need to unignore them if you want to specifically test them.

All reactions

Sorry, something went wrong.

Uh oh!

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

@mydea
mydea force-pushed the fn/fix-session-tracking branch from 07b1a96 to 1da5e09 Compare July 9, 2024 08:59
@mydea
skip tests on CI
d0cf935
@mydea
mydea merged commit 9b5cf26 into develop Jul 9, 2024
@mydea
mydea deleted the fn/fix-session-tracking branch July 9, 2024 10:26
This was referenced Jul 30, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.16.0 https-quantumblockchainai-atlassian-net/ossinsight#787
Open
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.17.0 https-quantumblockchainai-atlassian-net/ossinsight#791
Open
@amykapernick amykapernick mentioned this pull request Aug 1, 2024
[Snyk] Upgrade @sentry/nextjs from 8.14.0 to 8.17.0 amykapernick/wedding#12
Open
@wkylin wkylin mentioned this pull request Aug 1, 2024
[Snyk] Upgrade @sentry/react from 8.15.0 to 8.17.0 wkylin/pro-react-admin#370
Closed
@q1blue q1blue mentioned this pull request Aug 6, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.18.0 https-quantumblockchainai-atlassian-net/ossinsight#799
Open
@wkylin wkylin mentioned this pull request Aug 7, 2024
[Snyk] Upgrade @sentry/react from 8.15.0 to 8.18.0 wkylin/pro-react-admin#371
Merged
This was referenced Aug 9, 2024
[Snyk] Upgrade @sentry/react from 7.118.0 to 8.19.0 Stanislav1975/win11React#4
Open
[Snyk] Upgrade @sentry/node from 6.17.4 to 8.19.0 Stanislav1975/shields#596
Open
@q1blue q1blue mentioned this pull request Aug 9, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.19.0 https-quantumblockchainai-atlassian-net/ossinsight#802
Open
@FengShangWuQi FengShangWuQi mentioned this pull request Aug 11, 2024
[Snyk] Upgrade @sentry/gatsby from 7.20.0 to 8.19.0 FengShangWuQi/fengshangwuqi.github.io#1914
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Lms24 Lms24 Lms24 approved these changes
@lforst lforst Awaiting requested review from lforst
@andreiborza andreiborza Awaiting requested review from andreiborza
+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.

Uh oh!

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

3 participants

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