Closed
Description
Intro:
Developers wishing to collect custom performance metrics,
will need some documentation explaining how to use it and some example implementation,
so that they can send these metrics to Sentry and visualize them in product
Checklist:
- start with JS browser
setMeasurements
- intro
- what is it, and what is it not?
- differentiate between built-in measurements and custom measurements
- how does it work - high level - set (singular, plural, types etc) and attach to transaction
public setMeasurement(name: string, value: number, unit: MeasurementUnit = ''): void { this._measurements[name] = { value, unit };
- how to use it
- example snippets
- ensure we cover the boundaries in which they can collect custom metrics
- ideally reference product docs for DnD features where developers could visualize these docs
- Metrics and Custom Performance Measurements TBA
Related:
- ref(measurements): Make
setMeasurement
public API sentry-javascript#4933 - feat(types): Add type for measurement unit sentry-javascript#5313
follow up
- needs developer docs
- platforms where it is not supported?
Metadata
Metadata
Assignees
Labels
No labels