The current build fails as it not able to find BatchSpanProcessorOptions.
This struct is only forward-declared.
../otel-cpp-contrib/opentelemetry-cpp-contrib-866351ce2422a9d953ded4447bcdea0e587d6a53/instrumentation/nginx/src/otel_ngx_module.cpp: In function 'std::unique_ptr<opentelemetry::v1::sdk::trace::SpanProcessor> CreateProcessor(const OtelNgxAgentConfig*, std::unique_ptr<opentelemetry::v1::sdk::trace::SpanExporter>)':
../otel-cpp-contrib/opentelemetry-cpp-contrib-866351ce2422a9d953ded4447bcdea0e587d6a53/instrumentation/nginx/src/otel_ngx_module.cpp:1039:41: error: aggregate 'opentelemetry::v1::sdk::trace::BatchSpanProcessorOptions opts' has incomplete type and cannot be defined.
1039 | sdktrace::BatchSpanProcessorOptions opts;
I have also raised a PR with opentelemetry-cpp which i feel is the actual place we should add the include.
This PR is to ensure main builds with the current HEAD.
The current build fails as it not able to find BatchSpanProcessorOptions. This struct is only forward-declared.
I have also raised a PR with
opentelemetry-cpp
which i feel is the actual place we should add the include. This PR is to ensuremain
builds with the currentHEAD
.Related PR: