@haskou/metrics playground

Make a real request.
Inspect its telemetry.

Enter any public GitHub repository. One decorated method makes the request while the default runtime records its calls, duration, logs, and failures.

Change the value to a missing repository to capture a real HTTP failure and stack trace.

No request yet Run the decorated method

The result will come from GitHub's public API.

Stars
Forks
Open issues
Updated
Calls0
Failures0
Last duration0 ms
Logs0

Metrics

latest first

    Structured logs

      The instrumented method

      no configuration required
      class GitHubRepositoryFinder {
        @Metrics()
        public async find(repository: string): Promise<Repository> {
          const response = await fetch(githubUrl(repository));
      
          if (!response.ok) {
            throw new GitHubRepositoryRequestError(repository, response.status);
          }
      
          return response.json();
        }
      }