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

Support OpenTelemetry Browser SDK #8785

Closed
3 tasks done
2015214130 opened this issue Aug 10, 2023 · 6 comments
Closed
3 tasks done

Support OpenTelemetry Browser SDK #8785

2015214130 opened this issue Aug 10, 2023 · 6 comments

Comments

@2015214130
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

7.61.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

In order to make the data format exported by the browser more universal, I want to convert the Sentry report format to OpenTelemetry format. How can I solve this problem。

Expected Result

export OpenTelemetry format

Actual Result

export Sentry format

@mydea
Copy link
Member

mydea commented Aug 10, 2023

Hello,

Sentry currently does not output OTEL-compatible spans for the browser. If you need OTEL spans, you'll have to use some Opentelemetry SDK. Note that we as of now do not provide an out-of-the-box experience to convert otel browser spans to Sentry either - you'd have to take care of that yourself.

What are you actually trying to achieve with this? Do you want to send the span data somewhere else than Sentry as well, or why would you want to have OTEL spans as well?

While we are currently investigating better coupling with OTEL for Node (server) applications, we are currently not doing so for Browser SDKs yet, because of bundle size concerns.

@2015214130
Copy link
Author

Hello,

Sentry currently does not output OTEL-compatible spans for the browser. If you need OTEL spans, you'll have to use some Opentelemetry SDK. Note that we as of now do not provide an out-of-the-box experience to convert otel browser spans to Sentry either - you'd have to take care of that yourself.

What are you actually trying to achieve with this? Do you want to send the span data somewhere else than Sentry as well, or why would you want to have OTEL spans as well?

While we are currently investigating better coupling with OTEL for Node (server) applications, we are currently not doing so for Browser SDKs yet, because of bundle size concerns.

yes,i want to send the span data somewhere else than Sentry as well,for example grafana.
I don't think I understand what the issue of bundle size means. Thank you for your guidance.

@mydea mydea changed the title How to export data that conforms to OTel format,In the browser Support OpenTelemetry Browser SDK Aug 10, 2023
@mydea
Copy link
Member

mydea commented Aug 10, 2023

The bundle size comment is the explainer why we are currently not investigating this in detail - because we take a strong ownership for the browser SDK to keep bundle size as low as we can.

I'll move this issue to the backlog, as we are not currently working on (or planning to work on) a browser-OTEL connector. We are pretty swamped with other tasks right now, so it's hard to say if/when we'll get around to look into this.

@AbhiPrasad
Copy link
Member

We're tracking this in a GH discussion: #7364 - let's close this issue.

@2015214130 please leave your feedback in the discussion!

@AbhiPrasad AbhiPrasad closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2023
@2015214130
Copy link
Author

We're tracking this in a GH discussion: #7364 - let's close this issue.

@2015214130 please leave your feedback in the discussion!

Please close it

@2015214130
Copy link
Author

The bundle size comment is the explainer why we are currently not investigating this in detail - because we take a strong ownership for the browser SDK to keep bundle size as low as we can.

I'll move this issue to the backlog, as we are not currently working on (or planning to work on) a browser-OTEL connector. We are pretty swamped with other tasks right now, so it's hard to say if/when we'll get around to look into this.

I understand. Thank you

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

No branches or pull requests

3 participants