Skip to content

feat(observability/metrics): add RecordRequest#183

Open
xytan0056 wants to merge 1 commit into
pr2-trackinflightfrom
pr3-recordrequest
Open

feat(observability/metrics): add RecordRequest#183
xytan0056 wants to merge 1 commit into
pr2-trackinflightfrom
pr3-recordrequest

Conversation

@xytan0056

Copy link
Copy Markdown
Contributor

Adds RecordRequest(e, op, dur, err): records total_duration and a requests counter tagged result=success/fail.

Failure classification (the failure_type / failure_source tags) is left as a TODO and handled in a separate change.

Stacked on #182.

if err != nil {
result = ResultFail
}
// TODO: when err != nil, derive failure_type and failure_source tags from

@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.

update when errors package is ready

@xytan0056 xytan0056 changed the title [WIP] feat(observability/metrics): add RecordRequest feat(observability/metrics): add RecordRequest 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