Skip to content

chore(profiling): Update python profiling docs for new SDK #87015

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/python/aiohttp.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('aiohttp onboarding docs', function () {

// Does not render config option
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does not render config option
Expand All @@ -47,7 +47,7 @@ describe('aiohttp onboarding docs', function () {

// Does render transaction profiling config
const matches = screen.getAllByText(
textWithMarkupMatcher(/profiles_sample_rate=1\.0,/)
textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/)
);
expect(matches.length).toBeGreaterThan(0);
matches.forEach(match => expect(match).toBeInTheDocument());
Expand All @@ -68,7 +68,7 @@ describe('aiohttp onboarding docs', function () {

// Does not render transaction profiling config
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate: 1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate: 1\.0,/))
).not.toBeInTheDocument();

// Does render continuous profiling config
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/python/aiohttp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ sentry_sdk.init(
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode !== 'continuous'
? `
# Set profiles_sample_rate to 1.0 to profile 100%
# Set profile_session_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,`
profile_session_sample_rate=1.0,`
: params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode === 'continuous'
? `
Expand Down
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/python/asgi.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('asgi onboarding docs', function () {

// Does not render config option
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does not render config option
Expand All @@ -47,7 +47,7 @@ describe('asgi onboarding docs', function () {

// Does render transaction profiling config
expect(
screen.getByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.getByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).toBeInTheDocument();
});

Expand All @@ -66,7 +66,7 @@ describe('asgi onboarding docs', function () {

// Does not render transaction profiling config
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does render continuous profiling config
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/python/asgi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ sentry_sdk.init(
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode !== 'continuous'
? `
# Set profiles_sample_rate to 1.0 to profile 100%
# Set profile_session_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,`
profile_session_sample_rate=1.0,`
: params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode === 'continuous'
? `
Expand Down
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/python/awslambda.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('awslambda onboarding docs', function () {

// Does not render config option
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does not render config option
Expand All @@ -47,7 +47,7 @@ describe('awslambda onboarding docs', function () {

// Does render transaction profiling config
expect(
screen.getByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.getByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).toBeInTheDocument();
});

Expand All @@ -66,7 +66,7 @@ describe('awslambda onboarding docs', function () {

// Does not render transaction profiling config
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does render continuous profiling config
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/python/awslambda.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ sentry_sdk.init(
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode !== 'continuous'
? `
# Set profiles_sample_rate to 1.0 to profile 100%
# Set profile_session_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,`
profile_session_sample_rate=1.0,`
: params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode === 'continuous'
? `
Expand Down
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/python/bottle.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('bottle onboarding docs', function () {

// Does not render config option
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does not render config option
Expand All @@ -49,7 +49,7 @@ describe('bottle onboarding docs', function () {

// Does render transaction profiling config
const matches = screen.getAllByText(
textWithMarkupMatcher(/profiles_sample_rate=1\.0,/)
textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/)
);
expect(matches.length).toBeGreaterThan(0);
matches.forEach(match => expect(match).toBeInTheDocument());
Expand All @@ -70,7 +70,7 @@ describe('bottle onboarding docs', function () {

// Does not render transaction profiling config
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate: 1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate: 1\.0,/))
).not.toBeInTheDocument();

// Does render continuous profiling config
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/python/bottle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ sentry_sdk.init(
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode !== 'continuous'
? `
# Set profiles_sample_rate to 1.0 to profile 100%
# Set profile_session_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,`
profile_session_sample_rate=1.0,`
: params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode === 'continuous'
? `
Expand Down
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/python/celery.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('celery onboarding docs', function () {

// Does not render config option
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does not render config option
Expand All @@ -58,7 +58,7 @@ describe('celery onboarding docs', function () {

// Does render transaction profiling config
expect(
screen.getByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.getByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).toBeInTheDocument();
});

Expand All @@ -77,7 +77,7 @@ describe('celery onboarding docs', function () {

// Does not render transaction profiling config
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does render continuous profiling config
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/python/celery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ sentry_sdk.init(
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode !== 'continuous'
? `
# Set profiles_sample_rate to 1.0 to profile 100%
# Set profile_session_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,`
profile_session_sample_rate=1.0,`
: ''
}
)${
Expand Down
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/python/chalice.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('chalice onboarding docs', function () {

// Does not render config option
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does not render config option
Expand All @@ -49,7 +49,7 @@ describe('chalice onboarding docs', function () {

// Does render transaction profiling config
expect(
screen.getByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.getByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).toBeInTheDocument();
});

Expand All @@ -68,7 +68,7 @@ describe('chalice onboarding docs', function () {

// Does not render transaction profiling config
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does render continuous profiling config
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/python/chalice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ sentry_sdk.init(
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode !== 'continuous'
? `
# Set profiles_sample_rate to 1.0 to profile 100%
# Set profile_session_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,`
profile_session_sample_rate=1.0,`
: params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode === 'continuous'
? `
Expand Down
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/python/django.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('django onboarding docs', function () {

// Does not render config option
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does not render config option
Expand All @@ -49,7 +49,7 @@ describe('django onboarding docs', function () {

// Does render transaction profiling config
expect(
screen.getByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.getByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).toBeInTheDocument();
});

Expand All @@ -68,7 +68,7 @@ describe('django onboarding docs', function () {

// Does not render transaction profiling config
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does render continuous profiling config
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/python/django.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ sentry_sdk.init(
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode !== 'continuous'
? `
# Set profiles_sample_rate to 1.0 to profile 100%
# Set profile_session_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,`
profile_session_sample_rate=1.0,`
: params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode === 'continuous'
? `
Expand Down
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/python/falcon.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('falcon onboarding docs', function () {

// Does not render config option
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does not render config option
Expand All @@ -49,7 +49,7 @@ describe('falcon onboarding docs', function () {

// Does render transaction profiling config
const matches = screen.getAllByText(
textWithMarkupMatcher(/profiles_sample_rate=1\.0,/)
textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/)
);
expect(matches.length).toBeGreaterThan(0);
matches.forEach(match => expect(match).toBeInTheDocument());
Expand All @@ -70,7 +70,7 @@ describe('falcon onboarding docs', function () {

// Does not render transaction profiling config
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate: 1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate: 1\.0,/))
).not.toBeInTheDocument();

// Does render continuous profiling config
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/python/falcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ sentry_sdk.init(
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode !== 'continuous'
? `
# Set profiles_sample_rate to 1.0 to profile 100%
# Set profile_session_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,`
profile_session_sample_rate=1.0,`
: params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode === 'continuous'
? `
Expand Down
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/python/fastapi.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('flask onboarding docs', function () {

// Does not render config option
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does not render config option
Expand All @@ -49,7 +49,7 @@ describe('flask onboarding docs', function () {

// Does render transaction profiling config
expect(
screen.getByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.getByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).toBeInTheDocument();
});

Expand All @@ -68,7 +68,7 @@ describe('flask onboarding docs', function () {

// Does not render transaction profiling config
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate: 1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate: 1\.0,/))
).not.toBeInTheDocument();

// Does render continuous profiling config
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/python/fastapi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ sentry_sdk.init(
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode !== 'continuous'
? `
# Set profiles_sample_rate to 1.0 to profile 100%
# Set profile_session_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,`
profile_session_sample_rate=1.0,`
: params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode === 'continuous'
? `
Expand Down
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/python/flask.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('flask onboarding docs', function () {

// Does not render config option
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate=1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/))
).not.toBeInTheDocument();

// Does not render config option
Expand All @@ -49,7 +49,7 @@ describe('flask onboarding docs', function () {

// Does render transaction profiling config
const matches = screen.getAllByText(
textWithMarkupMatcher(/profiles_sample_rate=1\.0,/)
textWithMarkupMatcher(/profile_session_sample_rate=1\.0,/)
);
expect(matches.length).toBeGreaterThan(0);
matches.forEach(match => expect(match).toBeInTheDocument());
Expand All @@ -70,7 +70,7 @@ describe('flask onboarding docs', function () {

// Does not render transaction profiling config
expect(
screen.queryByText(textWithMarkupMatcher(/profiles_sample_rate: 1\.0,/))
screen.queryByText(textWithMarkupMatcher(/profile_session_sample_rate: 1\.0,/))
).not.toBeInTheDocument();

// Does render continuous profiling config
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/python/flask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ sentry_sdk.init(
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode !== 'continuous'
? `
# Set profiles_sample_rate to 1.0 to profile 100%
# Set profile_session_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,`
profile_session_sample_rate=1.0,`
: params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode === 'continuous'
? `
Expand Down
Loading
Loading