Skip to content

feat(model): add metric model - #649

Merged
giortzisg merged 3 commits into
mainfrom
feat/metric-model
Oct 6, 2026
Merged

giortzisg merged 3 commits into
mainfrom
feat/metric-model

Conversation

@giortzisg

Copy link
Copy Markdown
Contributor

Description

This adds a new metric model to the conventions along with the create:metric script.

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (model) Add metric model by giortzisg in #649

Bug Fixes 🐛

  • (attributes) Remove any as valid attribute type by Lms24 in #677

Internal Changes 🔧

Deps

  • Bump source-map-js from 1.2.1 to 1.2.2 by dependabot in #675
  • Bump smol-toml from 1.8.0 to 1.9.0 by dependabot in #674
  • Bump postcss-selector-parser from 7.1.4 to 7.1.6 by dependabot in #676

Other

  • (docs) Add link preview meta tags by Lms24 in #667
  • (publish) Stop npm version from rewriting yarn.lock by Lms24 in #678

🤖 This preview updates automatically when you update the PR.

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I had two questions but otherwise, lgtm!

Comment on lines +53 to +56
"requirement_level": {
"description": "Whether collection is required, recommended, or opt-in",
"enum": ["required", "recommended", "opt_in"]
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, sounds fair. Maybe we can make this a bit more clear in the description?

"description": "What the metric measures",
"type": "string"
},
"instrument": {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: why "instrument" as opposed to e.g. "type"? (genuinely asking. is this a common term for the different types?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is common terminology (eg. OTel calls them instrument types)

@Lms24 Lms24 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for taking this on! LGTM (had one small description request, see comment). If we're not in a rush I suggest we leave this open for ~2 days so other reviewers can weigh in.

@Lms24 Lms24 mentioned this pull request Sep 30, 2026
@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 6, 2026 9:04am UTC

Request Review

@giortzisg
giortzisg merged commit ff34ba1 into main Oct 6, 2026
18 checks passed
@giortzisg
giortzisg deleted the feat/metric-model branch October 6, 2026 09:10

This branch was successfully deployed

1 active deployment
Preview — 8d6a95b2 Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants