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

Can I submit metrics using client token? (intead of api_key/app_key) #76

Open
aguynamedben opened this issue Jul 17, 2020 · 4 comments
Open

Comments

@aguynamedben
Copy link

Thanks for building this great library!

Hi, I'm building an Electron app and I'd like to collect metrics from the app. Is there any way I can use a Client Token to submit metrics? I'm playing with the API but keep getting erros that api_key is required.

The log management system and RUM can take a client token, but I haven't found a way to get their metrics APIs to accept a client token.

@narwold
Copy link

narwold commented Jan 27, 2021

I would very much like this too.

@aguynamedben
Copy link
Author

Yeah!!! Datadog would become super engrained at our company if we could send off metrics from our app. Right now it's a glorified log collector. We use some of the log processing features to generate faux-metrics, but I wish I could send off real metrics from our app.

🙏

@brettlangdon
Copy link
Owner

brettlangdon commented Jan 27, 2021 via email

@narwold
Copy link

narwold commented Jan 27, 2021

What I've found is that the browser SDK can send logs via a client token. Not sure about metrics. Our use case is that we want a limited key/token that we can use to send some data. We'd prefer metrics, but possibly we could send logs and parse metrics out of it. We don't want to distribute an all-powerful API token across our dev machines, but we're trying to collect app build performance metrics from devs machines to measure developer experience. It seems there's no way to restrict an API key, so I was going down the path of using a client token. However, I can't get the browser SDK to work outside the browser (Node in our case), so I'm stuck trying to reverse engineer the RUM API calls without any documentation on the RUM intake API being available that I can find. Any suggestions would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants