You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw 'Pyroscope is not configured. Please call init() first.';
But I was calling init, which is confusing.
By setting the DEBUG environment variable, the error message is shown:
DEBUG='pyroscope*' node main.js
pyroscope Pyroscope is running on a cloud server, but no authToken was provided. Pyroscope will not be able to ingest data. +1ms
Therefore we should just log that message to stdout/err instead of hiding behind an env var.
The text was updated successfully, but these errors were encountered:
Another symptom of the same issue: We got our token wrong, but we had no idea at first. No errors or warnings on STDOUT. Finally after turning on debug logging, we found pyroscope { status: 'error', error: 'authentication error: invalid token' }. Errors like this should not be swallowed in DEBUG logs.
When first starting the
And error was thrown:
But I was calling
init
, which is confusing.By setting the
DEBUG
environment variable, the error message is shown:DEBUG='pyroscope*' node main.js pyroscope Pyroscope is running on a cloud server, but no authToken was provided. Pyroscope will not be able to ingest data. +1ms
Therefore we should just log that message to stdout/err instead of hiding behind an env var.
The text was updated successfully, but these errors were encountered: