Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for authentication token #16

Closed
kolesnikovae opened this issue Feb 14, 2022 · 0 comments
Closed

Add support for authentication token #16

kolesnikovae opened this issue Feb 14, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request integrations

Comments

@kolesnikovae
Copy link
Contributor

kolesnikovae commented Feb 14, 2022

Recently we added support for agent authentication to Pyroscope (0.10.0). It would be nice to have support for this in the rust spy package.

The documentation can be found here: pyroscope-io/docs#43 (will be published soon!), the crux is that pyroscope server expects bearer authentication token in the Authorization header. For example:

printf "foo;bar 100\n foo;baz 200" | curl --fail \
-X POST \
-H "Authorization: Bearer ${PYROSCOPE_API_KEY}" \
--data-binary @- \
'http://localhost:4040/ingest?name=curl-test-app&from=1615709120&until=1615709130'

Existing integrations already support specifying an auth token via the configuration:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request integrations
Projects
None yet
Development

No branches or pull requests

3 participants