Skip to content

Web interface metrics - #96

Closed
zzbrar wants to merge 3 commits into
masterfrom
web_interface_metrics
Closed

zzbrar wants to merge 3 commits into
masterfrom
web_interface_metrics

Conversation

@zzbrar

@zzbrar zzbrar commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available: https://taskei.amazon.dev/tasks/Wickr-25457

Description of changes:
Publish web interface bot specific metrics via the now exposed custom bot metric interface.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment thread src/metrics.ts
}
}

export function incrementMetric(name: string, value = 1): void {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: why not just export the functions these are calling?

Comment thread src/web_interface.ts
const startedAt = process.hrtime.bigint()
res.on('finish', () => {
const durationMs = Number(process.hrtime.bigint() - startedAt) / 1e6
recordRequest(res.statusCode, durationMs)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we add the operation name as a dimension?

@zzbrar zzbrar closed this Aug 18, 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.

2 participants