draffensperger
Re:OpenCensus Web: A tool to trace and monitor user-perceived performance
on Monday August 12, 2019 @12:27PM (#20676937)
If you expose the OpenCensus service directly to the internet, then a malicious user could definitely send traces directly to it.
We recommend in the blog post that you write an endpoint in your frontend web application that would proxy the writes of traces through it. That way you can add whatever rate limiting / authentication middleware you have for your overall application so that only logged in users can submit traces for your web app (or severely rate-limit those from unauthenticated users).
Basically, we are aware of this issue and our approach right now is to ask you to handle it in an application-specific way.
Re:OpenCensus Web: A tool to trace and monitor user-perceived performance
on Monday August 12, 2019 @12:24PM (#20676911)
As mentioned in the post, the eventual home for this functionality will be in OpenTelemetry. Specifically, it will eventually be integrated into OpenTelemetry JS (https://github.com/open-telemetry/opentelemetry-js), which is being built up from the start to have the core parts be usable in the browser.
Disclaimer: I work for Google and was the original author of OpenCensus Web, and coached Cristian, the intern who wrote the post.