elastic / elastic/apm-agent-nodejs

Consider adding apm.isActive() method

Open
#1,800 0 comments 0 reactions 0 assignees View on GitHub
agent-nodejs enhancement
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

**Is your feature request related to a problem? Please describe.**

Trying to work around #1799, I thought I would first check whether the agent is active before calling `registerMetric()` but it seems there's no API to detect that. The `isStarted()` method returns `true` if `start()` had been called, regardless of the active status. Even when elastic/apm-agent-nodejs#1799 gets fixes, it may be useful to have an `isActive()` method.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.