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

Instrumentation to capture console logs as OTel logs #1560

Open
martinkuba opened this issue Jul 5, 2023 · 3 comments
Open

Instrumentation to capture console logs as OTel logs #1560

martinkuba opened this issue Jul 5, 2023 · 3 comments

Comments

@martinkuba
Copy link
Contributor

Is your feature request related to a problem? Please describe

This is a feature request to capture console logs and send them to OTLP backends using the OTel Logs API/SDK.

Describe the solution you'd like to see

User should be able to capture console logs and export them to OpenTelemetry backends.

Related to #1558 and #1559

@pichlermarc pichlermarc added instrumentation-request up-for-grabs Good for taking. Extra help will be provided by maintainers labels Jul 10, 2023
@hectorhdzg hectorhdzg self-assigned this Nov 30, 2023
@hectorhdzg hectorhdzg removed the up-for-grabs Good for taking. Extra help will be provided by maintainers label Nov 30, 2023
@davidwindell
Copy link

This would be super useful, especially for capturing errors that occur before a backend application can detect them and forward on to the collector.

@el-buku
Copy link

el-buku commented Oct 12, 2024

for now the only solution seems to be creating a dedicated app route for collecting frontend console.[] calls, right? 🥹

@martinkuba
Copy link
Contributor Author

@el-buku If by app route you mean a custom backend endpoint for collecting the logs, you can collect the logs by sending them to a Collector or any OTLP backend that supports OTel logs. This instrumentation unfortunately still does not exist, but you can generate the logs manually using the Logs API and SDK.

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

5 participants