Skip to content

Conversation

@JoshuaMoelans
Copy link
Member

@JoshuaMoelans JoshuaMoelans commented Dec 2, 2025

Continuing from #102398, to be merged after that one was merged.

We add the logs onboarding for each of the platforms that now support logs (unity, unreal, dotnet, native, php-symfony)

ToDo

  • add Unity onboarding
  • double-check that all relevant onboarding docs exist & are correct (I will ping the SDK maintainers)
  • maybe add logs checkbox to project onboarding page for each of these SDKs (see original comment)

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 2, 2025
@JoshuaMoelans JoshuaMoelans changed the title Joshua/chore/logs onboarding chore: update SDK onboarding pages Dec 2, 2025
@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #104234      +/-   ##
===========================================
- Coverage   80.60%    80.60%   -0.01%     
===========================================
  Files        9333      9333              
  Lines      398600    398597       -3     
  Branches    25497     25496       -1     
===========================================
- Hits       321275    321272       -3     
  Misses      76875     76875              
  Partials      450       450              

@getsantry
Copy link
Contributor

getsantry bot commented Dec 25, 2025

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

Copy link
Member

@Flash0ver Flash0ver left a comment

Choose a reason for hiding this comment

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

dotnet platforms

Comment on lines -17 to +18
'4.3.0'
'6.0.0'
Copy link
Member

Choose a reason for hiding this comment

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

is this updating version for profile? if yes, then perhaps it would be better to have this update in a separate PR

Copy link
Member Author

Choose a reason for hiding this comment

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

IIUC the version here is a fallback if getPackageVersion fails, right? I changed the fallback here too because of this comment by Stefan, since we removed the if-elif selection of the fallback version for Logs that I added at first (hence it is slightly related). I'm fine with moving this change into another PR though.

Comment on lines +190 to +191
title: t('Verify Logs'),
content: [logsVerify(params)],
Copy link
Member

Choose a reason for hiding this comment

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

Nit: The current approach works fine as is. However, to reduce repeating titles, you could add a new parameter to this function for a dynamic title. Then you could simply call:

logsVerify({ params, title: 'Verify Logs' })

This way, the title can be customized without hardcoding it in multiple places.

Comment on lines 18 to 37
const installSteps = result.install(mockParams);
expect(installSteps).toHaveLength(1);
expect(installSteps[0].type).toBe('install');
expect(installSteps[0].content).toHaveLength(2);

// Test configure step
const configureSteps = result.configure(mockParams);
expect(configureSteps).toHaveLength(1);
expect(configureSteps[0].type).toBe('configure');
expect(configureSteps[0].content[1].code).toContain('options.EnableLogs = true;');
expect(configureSteps[0].content[1].code).toContain(mockParams.dsn.public);

// Test verify step
const verifySteps = result.verify({isLogsSelected: true});
expect(verifySteps).toHaveLength(1);
expect(verifySteps[0].type).toBe('verify');
expect(verifySteps[0].content).toHaveLength(1);
expect(verifySteps[0].content[0].type).toBe('conditional');
const conditionalContent = verifySteps[0].content[0].content;
expect(conditionalContent[1].code).toContain('SentrySdk.Logger.LogInfo');
Copy link
Member

Choose a reason for hiding this comment

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

How about we test only the visual aspect? That way, if the structure changes, we won’t need to update this test. For example, you could just check for:

screen.getByText('SentrySdk.Logger.LogInfo')

Copy link
Member Author

@JoshuaMoelans JoshuaMoelans Jan 22, 2026

Choose a reason for hiding this comment

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

yeah makes sense. This was based on the existing logs.spec.tsx for Python, so I can adapt both.

follow-up question: Should we have this kind of test for each of the SDKs' logs pages?

params,
'sentry.dotnet.profiling',
'4.3.0'
'6.0.0'
Copy link
Member

Choose a reason for hiding this comment

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

should we have these changes in a separate PR? it seems unrelated to logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants