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
'To enable capturing metrics, you need to enable the metrics feature.'
273
+
),
274
+
configurations: [
275
+
{
276
+
code: [
277
+
{
278
+
label: 'Swift',
279
+
value: 'swift',
280
+
language: 'swift',
281
+
code: getConfigureMetricsSnippetSwift(params),
282
+
},
283
+
{
284
+
label: 'Objective-C',
285
+
value: 'c',
286
+
language: 'c',
287
+
code: getConfigureMetricsSnippetObjC(params),
288
+
},
289
+
],
290
+
},
291
+
],
292
+
},
293
+
],
294
+
verify: ()=>[
295
+
{
296
+
type: StepType.VERIFY,
297
+
description: tct(
298
+
"Then you'll be able to add metrics as [codeCounters:counters], [codeSets:sets], [codeDistribution:distributions], and [codeGauge:gauges]. These are available under the [codeNamespace:SentrySDK.metrics()] namespace. Try out this example:",
299
+
{
300
+
codeCounters: <code/>,
301
+
codeSets: <code/>,
302
+
codeDistribution: <code/>,
303
+
codeGauge: <code/>,
304
+
codeNamespace: <code/>,
305
+
}
306
+
),
307
+
configurations: [
308
+
{
309
+
configurations: [
310
+
{
311
+
code: [
312
+
{
313
+
label: 'Swift',
314
+
value: 'swift',
315
+
language: 'swift',
316
+
code: getVerifyMetricsSnippetSwift(),
317
+
},
318
+
{
319
+
label: 'Objective-C',
320
+
value: 'c',
321
+
language: 'c',
322
+
code: getVerifyMetricsSnippetObjC(),
323
+
},
324
+
],
325
+
},
326
+
],
327
+
},
328
+
{
329
+
description: t(
330
+
'With a bit of delay you can see the data appear in the Sentry UI.'
331
+
),
332
+
},
333
+
{
334
+
description: tct(
335
+
'Learn more about metrics and how to configure them, by reading the [docsLink:docs].',
0 commit comments