You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Adding Performance to your Flask project is simple. Make sure you've got these basics down."
179
-
),
180
-
install: onboarding.install,
181
-
configure: params=>[
182
-
{
183
-
type: StepType.CONFIGURE,
184
-
content: [
185
-
{
186
-
type: 'text',
187
-
text: tct(
188
-
'To configure the Sentry SDK, initialize it in your [code:settings.py] file:',
189
-
{code: <code/>}
190
-
),
191
-
},
192
-
{
193
-
type: 'code',
194
-
language: 'python',
195
-
code: `
196
-
import sentry-sdk
197
-
198
-
sentry_sdk.init(
199
-
dsn: "${params.dsn.public}",
200
-
# Set traces_sample_rate to 1.0 to capture 100%
201
-
# of transactions for performance monitoring.
202
-
traces_sample_rate=1.0,
203
-
)`,
204
-
},
205
-
{
206
-
type: 'text',
207
-
text: tct(
208
-
'Learn more about tracing [linkTracingOptions:options], how to use the [linkTracesSampler:traces_sampler] function, or how to [linkSampleTransactions:sample transactions].',
"Adding Performance to your Flask project is simple. Make sure you've got these basics down."
14
+
),
15
+
install: onboarding.install,
16
+
configure: params=>[
17
+
{
18
+
type: StepType.CONFIGURE,
19
+
content: [
20
+
{
21
+
type: 'text',
22
+
text: tct(
23
+
'To configure the Sentry SDK, initialize it in your [code:settings.py] file:',
24
+
{code: <code/>}
25
+
),
26
+
},
27
+
{
28
+
type: 'code',
29
+
language: 'python',
30
+
code: `
31
+
import sentry_sdk
32
+
33
+
sentry_sdk.init(
34
+
dsn="${params.dsn.public}",
35
+
# Set traces_sample_rate to 1.0 to capture 100%
36
+
# of transactions for performance monitoring.
37
+
traces_sample_rate=1.0,
38
+
)`,
39
+
},
40
+
{
41
+
type: 'text',
42
+
text: tct(
43
+
'Learn more about tracing [linkTracingOptions:options], how to use the [linkTracesSampler:traces_sampler] function, or how to [linkSampleTransactions:sample transactions].',
0 commit comments