Replies: 3 comments
-
Yes, it requires protobuf 3.13.0 or upper. |
Beta Was this translation helpful? Give feedback.
-
@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 |
Beta Was this translation helpful? Give feedback.
-
Protobuf v3 also has different default pack settings for repeated numeric types. Which also take effect on compatibility of packed binary. |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions