Skip to content

feat(observability/metrics): add Emitter, options, buckets, and label vocabulary#181

Open
xytan0056 wants to merge 1 commit into
pr0-docsfrom
pr1-emitter-core
Open

feat(observability/metrics): add Emitter, options, buckets, and label vocabulary#181
xytan0056 wants to merge 1 commit into
pr0-docsfrom
pr1-emitter-core

Conversation

@xytan0056

@xytan0056 xytan0056 commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Adds the observability/metrics package: the Emitter interface with a tally-backed implementation, per-call options (WithTags, duration/value bucket overrides), the default histogram buckets, and the shared tag keys + Result values.

  • Operation and metric names are added in later PRs as their emitters land, so nothing here is unused.
  • single Option type across emitter. Per-method option types is overkill for 3 options. Unintended options are noop anyway.

Stacked on #158.

ResultFail Result = "fail"
ResultHit Result = "hit"
ResultMiss Result = "miss"
)

@xytan0056 xytan0056 Jul 11, 2026

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.

rest of consts will be added as used. Keeping the change incremental for easier review

@xytan0056 xytan0056 changed the title [WIP] feat(observability/metrics): add Emitter, options, buckets, and label vocabulary \\feat(observability/metrics): add Emitter, options, buckets, and label vocabulary Jul 11, 2026
@xytan0056 xytan0056 changed the title \\feat(observability/metrics): add Emitter, options, buckets, and label vocabulary feat(observability/metrics): add Emitter, options, buckets, and label vocabulary Jul 11, 2026
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.

1 participant