apache / apache/beam

Timer metric type

Open
#18,332 1 comment 0 reactions 0 assignees View on GitHub
beam-model core java new feature P3 python
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Add support for Timer metric type to the SDK.
Interface should be along the lines of:
```

void update(Duration duration);
T time(Callable event);
Closeable time();

```

Compare to http://metrics.dropwizard.io/3.1.0/apidocs/com/codahale/metrics/Timer.html

Could reuse code for this and https://issues.apache.org/jira/browse/BEAM-1613

Imported from Jira [BEAM-1699](https://issues.apache.org/jira/browse/BEAM-1699). Original Jira may contain additional context.
Reported by: aviemzur.

Contributor guide

Open the contributing guide

Research direction

Start by locating the SDK's existing metric types, then compare the proposed interface with Dropwizard Timer and BEAM-1613. Done means the SDK supports the requested Timer operations; the issue names no specific files or tests, so those entry points and verification steps must be identified first.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.