include the otel header-only part directly for ease of use

This commit is contained in:
Grant Limberg 2025-07-11 13:12:13 -07:00
parent 8895ad182f
commit 7f835b414a
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
241 changed files with 49967 additions and 3 deletions

View file

@ -316,8 +316,11 @@ OTEL_VERSION=1.21.0
ifeq (${ZT_OTEL},1)
OTEL_INSTALL_DIR=ext/opentelemetry-cpp-${OTEL_VERSION}/localinstall
DEFS+=-DZT_OTEL
INCLUDES+=-I${OTEL_INSTALL_DIR}/include -Iext/opentelemetry-cpp/exporters/otlp/include
INCLUDES+=-I${OTEL_INSTALL_DIR}/include
LDLIBS+=-L${OTEL_INSTALL_DIR}/lib -lopentelemetry_exporter_in_memory_metric -lopentelemetry_exporter_in_memory -lopentelemetry_exporter_ostream_logs -lopentelemetry_exporter_ostream_metrics -lopentelemetry_exporter_ostream_span -lopentelemetry_trace -lopentelemetry_common -lopentelemetry_resources -lopentelemetry_logs -lopentelemetry_metrics -lopentelemetry_version
else
OTEL_INSTALL_DIR=ext/opentelemetry-cpp-api-only/localinstall
INCLUDES+=-I${OTEL_INSTALL_DIR}/include
endif
# Disable software updates by default on Linux since that is normally done with package management