Repository navigation
Replies: 3 comments
|
Yes, it requires protobuf 3.13.0 or upper. |
0 replies
|
@dluongiop you can hack around it like this: && sed -i 's/"--experimental_allow_proto3_optional"//g' ../cmake/opentelemetry-proto.cmake \
&& sed -i 's/message.ByteSizeLong()/message.ByteSize()/g' ../exporters/otlp/src/otlp_http_client.cc \
&& sed -i 's;# include "google/protobuf/stubs/port.h";# include "google/protobuf/stubs/port.h"\n# include <iostream>\n;g' ../exporters/otlp/src/otlp_http_client.cc \
&& sed -i 's;PRIVATE CURL::libcurl;PRIVATE /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4;g' ../ext/src/http/client/curl/CMakeLists.txt \
&& sed -i '1i#include <iostream>' ../exporters/otlp/src/otlp_http_client.cc We only use this for traces, not spans, so can't say for sure what all this breaks. But it at least works for sending traces via the protobuf protocol |
0 replies
Protobuf v3 also has different default pack settings for repeated numeric types. Which also take effect on compatibility of packed binary. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm trying to build otel-cpp in Amazon Linux2. I get the following errors when configured with -DWITH_OTLP=ON -DWITH_OTLP_HTTP=ON
All reactions