I am struggling to send data to custom metrics from Browser API. Docs are clear on how to do it from Node.js, but in Browser context it looks like there is no other option but to send it via HTTP request.
Did anyone find a browser's api method to do that, or did datadog just skip this feature for browsers?
The datatog in my web app is configured the CDN way:
<script type="text/javascript" src="https://www.datadoghq-browser-agent.com/datadog-logs-us.js"></script>
<script>
DD_LOGS.init({
// config
});
</script>
It seems like there is no other way but to use HTTP. The DOCS on submitting metrics are there.