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

Browser Console intrumentation #2541

Open
drdreo opened this issue Nov 19, 2024 · 0 comments
Open

Browser Console intrumentation #2541

drdreo opened this issue Nov 19, 2024 · 0 comments

Comments

@drdreo
Copy link

drdreo commented Nov 19, 2024

Is your instrumentation request related to a problem? Please describe

A simple console logger to improve observability is missing in the browser side JavaScript OpenTelemetry ecosystem.
It took a while to navigate the OT packages, just to find out that most of related implementations are for Node specifically.
Adding a simple patch to the global console object and reporting it to the logger sdk does not require much, but could improve the adoption rate of OT as it should not be that tricky to observe console messages.

Every observability tool known to me (Sentry, NewRelic, datadog, co.) ship with such a console logger.

Is it applicable for Node or Browser or both?

Only for the browser / web.

Do you expect this instrumentation to be commonly used?

Yes. Since console instrumentation is one of the first things developers look for when adding observability.

What version of instrumentation are you interested in using?

Versions: 0.42? but i do not fully understand the question

Code Owners

  • Owner 1
  • Owner 2

Additional context

I have already prepared a custom instrumentation and it would be quick to sketch this fully out - https://github.com/drdreo/opentelemetry-js-contrib/blob/4eea6b44d25460f01f7aaebc02cb0d4587aee1da/plugins/web/opentelemetry-instrumentation-console/src/instrumentation.ts#L55

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

No branches or pull requests

1 participant