Closed cfstras closed 3 weeks ago
Name | Link |
---|---|
Latest commit | d05928081e6b91a6e928f3a846f9f48e772bed9e |
Latest deploy log | https://app.netlify.com/sites/opentelemetry-cpp-api-docs/deploys/6728f62d3eacbe0008cc31f0 |
This makes sense.
Note however that ENABLE_OTLP_COMPRESSION_PREVIEW
is what we call a "feature flag":
By the time the compression code is deemed stable, the feature flag will be removed, so the dependency at build time on zlib will become mandatory.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 87.88%. Comparing base (
497eaf4
) to head (d059280
). Report is 152 commits behind head on main.
Hi @marcalff Thanks for the note. I guess once it's stable, we'll have to bite the bullet and add that to our build scripts.
FWIW, for our situation compression is pretty unnecessary, we have a native binary running alongside a DataDog daemon on the same box, so data never leaves the box. More dependencies just complicate the already quite complex build process. Anyway, thanks for maintaining this, it's very helpful for us! :)
Issue
Currently, when building
-DWITH_OTLP_HTTP_COMPRESSION=OFF
, and not providing the libz dependency, we get this error:Changes
This fixes the issue by moving the
#include <zconf.h>
inside the corresponding #ifdef block, letting the build pass.Do I need to do any of these? LMK, happy to :)