Giter Site home page Giter Site logo

Comments (10)

obecny avatar obecny commented on August 24, 2024 1

I have created issue there too let's see who will do the fix ;)

from opentelemetry-proto.

tigrannajaryan avatar tigrannajaryan commented on August 24, 2024

It should not be limited to base64. It is declared as bytes and any byte sequence should work.

from opentelemetry-proto.

obecny avatar obecny commented on August 24, 2024

but it doesn't work with bytes, only with base64

from opentelemetry-proto.

Oberon00 avatar Oberon00 commented on August 24, 2024

Doesn't work with what? That' probably the receiver's fault, not the protocol's. So this issue is probably in the wrong repository.

from opentelemetry-proto.

obecny avatar obecny commented on August 24, 2024

the proto format says that traceId, spanId and parentId should be bytes, but if you send the data using bytes instead of base64, the opentelemetry collector doesn't work. So this is either wrong description here or opentelemetry collector bug.

from opentelemetry-proto.

Oberon00 avatar Oberon00 commented on August 24, 2024

I'd say, by definition, the opentelemetry collector has a bug. 😃

from opentelemetry-proto.

bogdandrutu avatar bogdandrutu commented on August 24, 2024

@obecny Are you using the JSON with grpc gateway? If yes that is not a bug is the proto limitation, see https://github.com/open-telemetry/opentelemetry-proto/issues/129

from opentelemetry-proto.

bogdandrutu avatar bogdandrutu commented on August 24, 2024

See here as well https://developers.google.com/protocol-buffers/docs/proto3#json - bytes are mapped as base64 in JSON representation.

from opentelemetry-proto.

obecny avatar obecny commented on August 24, 2024

@bogdandrutu yes grpc with json. I don't know about the limitation etc. but when I was implementing this it was saying use bytes which I did, but then the error from collector was not enough to be able to understand what is the problem. We can argue where is the bug, but simply adding some explanation in proto repo that with json you should use base64 would probably save some hours of debugging and trying to figure out what's the problem and if either format is wrong or the receiver - which btw has even much worse documentation and is outdated :).

from opentelemetry-proto.

bogdandrutu avatar bogdandrutu commented on August 24, 2024

open-telemetry/opentelemetry-collector#980 (comment) will resolve this issue.

from opentelemetry-proto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.