-
Notifications
You must be signed in to change notification settings - Fork 807
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
Protobuf trace exporter for browser #3118
Comments
I think actually the current one should work in browser it just needs to have tests added. |
The problem before was the .proto files and that's been sorted now that we ship compiled js files using protobufjs which supports browser |
I tested it with the parcel example from the docs, and getting this error
There is a single exporter class in the package that extends |
I'm happy to take a look at this! |
Yeah there is actually nothing node specific there though as far as I'm aware now that proto stuff is gone. I think the problem will just be that we don't have browser targets and tsconfigs setup in the package.json. I'm pretty sure this is a packaging issue not a code issue. |
I could be wrong, and there may be some minor things to change, but overall I don't expect this to be a large body of work |
@pkanal any update on this? |
I started looking into this we need to add browser targets for |
You're right it's not. I think we should be able to actually remove the async nature of that require entirely. It used to be required to do that so we wouldn't load grpc libraries before grpc instrumentation, but we now load instrumentation a different way that allows us to load it before setting up the SDK. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
@pkanal any update here? |
I have a WIP PR here: #3208 and I should be able to get it into a reviewable state this week |
Is your feature request related to a problem? Please describe.
When exporting OTLP data from browsers, it is important to minimize the size of the payload. The existing JSON OTLP format can be very large due to long and repeated keys. This was discussed in this (rejected) PR open-telemetry/opentelemetry-proto#413. One outcome of that discussion was a recommendation to provide the option of exporting using protobuf rather than JSON.
Describe the solution you'd like
The current protobuf exporter works only with Node. The request is to make it work in browsers as well.
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: