-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(onboarding): Add metrics onboarding for JS SDKs #102775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import {getJavascriptMetricsOnboarding} from 'sentry/utils/gettingStartedDocs/javascript'; | ||
|
|
||
| import {installSnippetBlock} from './utils'; | ||
|
|
||
| export const metrics = getJavascriptMetricsOnboarding({ | ||
| installSnippetBlock, | ||
| docsPlatform: 'angular', | ||
| packageName: '@sentry/angular', | ||
| }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import {getJavascriptMetricsFullStackOnboarding} from 'sentry/utils/gettingStartedDocs/javascript'; | ||
|
|
||
| export const metrics = getJavascriptMetricsFullStackOnboarding({ | ||
| docsPlatform: 'astro', | ||
| packageName: '@sentry/astro', | ||
| }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -198,4 +198,11 @@ describe('javascript-astro onboarding docs', () => { | |
| // This is a bit complex to test precisely, but we can ensure the config is split correctly | ||
| expect(astroConfigSections.length).toBeGreaterThan(0); | ||
| }); | ||
|
|
||
| it('has metrics onboarding configuration', () => { | ||
| expect(docs.metricsOnboarding).toBeDefined(); | ||
| expect(docs.metricsOnboarding?.install).toBeDefined(); | ||
| expect(docs.metricsOnboarding?.configure).toBeDefined(); | ||
| expect(docs.metricsOnboarding?.verify).toBeDefined(); | ||
| }); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Missing Metrics Onboarding in Docs ExportTest expects |
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -156,4 +156,11 @@ describe('javascript-ember onboarding docs', () => { | |
| screen.queryByText(textWithMarkupMatcher(/Sentry\.logger\.info/)) | ||
| ).not.toBeInTheDocument(); | ||
| }); | ||
|
|
||
| it('has metrics onboarding configuration', () => { | ||
| expect(docs.metricsOnboarding).toBeDefined(); | ||
| expect(docs.metricsOnboarding?.install).toBeDefined(); | ||
| expect(docs.metricsOnboarding?.configure).toBeDefined(); | ||
| expect(docs.metricsOnboarding?.verify).toBeDefined(); | ||
| }); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Missing metricsOnboarding in Ember docs exportTest expects |
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import {getJavascriptMetricsOnboarding} from 'sentry/utils/gettingStartedDocs/javascript'; | ||
|
|
||
| import {installSnippetBlock} from './utils'; | ||
|
|
||
| export const metrics = getJavascriptMetricsOnboarding({ | ||
| installSnippetBlock, | ||
| docsPlatform: 'ember', | ||
| packageName: '@sentry/ember', | ||
| }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import {getJavascriptMetricsOnboarding} from 'sentry/utils/gettingStartedDocs/javascript'; | ||
|
|
||
| import {installSnippetBlock} from './utils'; | ||
|
|
||
| export const metrics = getJavascriptMetricsOnboarding({ | ||
| installSnippetBlock, | ||
| docsPlatform: 'javascript', | ||
| packageName: '@sentry/browser', | ||
| }); |
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.
Bug: Missing metrics onboarding in Angular docs export
Test expects
docs.metricsOnboardingto be defined, but the angular platform docs export instatic/app/gettingStartedDocs/javascript/angular/index.tsxdoes not include ametricsOnboardingproperty. This test will fail. The angular platform was added toplatformProductAvailabilitywithProductSolution.METRICSsupport but the corresponding metrics onboarding configuration was not added to the docs export.