Repository navigation
feat(model): add metric model - #649
Conversation
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛
Internal Changes 🔧Deps
Other
🤖 This preview updates automatically when you update the PR. |
ffcd76e to
9ef829b
Compare
Lms24
left a comment
There was a problem hiding this comment.
Nice! I had two questions but otherwise, lgtm!
| "requirement_level": { | ||
| "description": "Whether collection is required, recommended, or opt-in", | ||
| "enum": ["required", "recommended", "opt_in"] | ||
| }, |
There was a problem hiding this comment.
q: is this field necessary? Or IOW, what does it mean for SDKs if collection of a metric is required? As-in, auto collected metrics need to be opt-in (e.g. via an integration) anyway, no?
There was a problem hiding this comment.
Yeah auto collected metrics in general are opt-in, but this is for distinguishing opt-in metrics for the integration itself in cases where we don't want to expose every metric by default.
There was a problem hiding this comment.
ok, sounds fair. Maybe we can make this a bit more clear in the description?
| "description": "What the metric measures", | ||
| "type": "string" | ||
| }, | ||
| "instrument": { |
There was a problem hiding this comment.
l: why "instrument" as opposed to e.g. "type"? (genuinely asking. is this a common term for the different types?)
There was a problem hiding this comment.
This is common terminology (eg. OTel calls them instrument types)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Description
This adds a new metric model to the conventions along with the
create:metricscript.PR Checklist
yarn testand verified that the tests pass.yarn generateto generate and format code and docs.If an attribute was added:
nextjs.function_id, notfunction_id)apply_scrubbing(i.e.manualorauto. Useneveronly for values that should never be scrubbed such as IDs)If an attribute was deprecated: