File tree 5 files changed +9
-6
lines changed
5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ if(NOT DEFINED OTEL_CPP_INSTALLED_DIR)
191
191
include (ExternalProject)
192
192
set (OTEL_CPP_PROJECT_NAME opentelemetry-cpp)
193
193
set (OTEL_CPP_GIT_REPOSITORY "https://github.com/open-telemetry/opentelemetry-cpp.git" )
194
- set (OTEL_CPP_GIT_TAG "baecbb9 " )
194
+ set (OTEL_CPP_GIT_TAG "fa0a520 " )
195
195
196
196
set (OTEL_CPP_CXX_STANDARD 14)
197
197
@@ -209,15 +209,14 @@ if(NOT DEFINED OTEL_CPP_INSTALLED_DIR)
209
209
set (patch_command "" )
210
210
endif ()
211
211
212
- # WITH_DEPRECATED_SDK_FACTORY flag is only needed for versions 1.16.0 and 1.16.1, and will be removed in 1.17.0
213
212
ExternalProject_Add(
214
213
${OTEL_CPP_PROJECT_NAME}
215
214
GIT_REPOSITORY ${OTEL_CPP_GIT_REPOSITORY}
216
215
GIT_TAG ${OTEL_CPP_GIT_TAG}
217
216
PREFIX ${OTEL_CPP_PREFIX}
218
217
UPDATE_DISCONNECTED 1
219
218
PATCH_COMMAND ${patch_command}
220
- CMAKE_ARGS -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DWITH_OTLP_HTTP=${WITH_OTLP_HTTP} -DWITH_OTLP_GRPC=${WITH_OTLP_GRPC} -DWITH_OTLP_FILE=${WITH_OTLP_FILE} -DBUILD_TESTING=OFF -DWITH_BENCHMARK=OFF -DWITH_DEPRECATED_SDK_FACTORY= OFF - DOPENTELEMETRY_INSTALL=ON -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_CXX_STANDARD=${OTEL_CPP_CXX_STANDARD} -DVCPKG_INSTALLED_DIR=${VCPKG_INSTALLED_DIR} ${TRIPLET_DEFINITIONS}
219
+ CMAKE_ARGS -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DWITH_OTLP_HTTP=${WITH_OTLP_HTTP} -DWITH_OTLP_GRPC=${WITH_OTLP_GRPC} -DWITH_OTLP_FILE=${WITH_OTLP_FILE} -DBUILD_TESTING=OFF -DWITH_BENCHMARK=OFF -DOPENTELEMETRY_INSTALL=ON -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_CXX_STANDARD=${OTEL_CPP_CXX_STANDARD} -DVCPKG_INSTALLED_DIR=${VCPKG_INSTALLED_DIR} ${TRIPLET_DEFINITIONS}
221
220
BUILD_BYPRODUCTS ${OTEL_CPP_LIBRARIES}
222
221
INSTALL_DIR ${OTEL_CPP_PREFIX}
223
222
INSTALL_COMMAND ${CMAKE_COMMAND} --install . --prefix ${OTEL_CPP_PREFIX} --config $<CONFIG>
Original file line number Diff line number Diff line change 6
6
#include " opentelemetry-matlab/common/attribute.h"
7
7
8
8
#include " opentelemetry/common/attribute_value.h"
9
+ #include " opentelemetry/common/key_value_iterable_view.h"
9
10
#include " opentelemetry/nostd/string_view.h"
10
11
11
12
namespace common = opentelemetry::common;
Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ function testOtlpFileExporter(testCase)
68
68
% perform test comparisons
69
69
forceFlush(lp , testCase .ForceFlushTimeout );
70
70
clear(" lg" , " lp" );
71
- results = jsondecode(fileread(alias ));
71
+ resultstxt = readlines(alias );
72
+ results = jsondecode(resultstxt(1 ));
72
73
73
74
% check logger name, log body and severity
74
75
verifyEqual(testCase , string(results .resourceLogs .scopeLogs .scope .name ), loggername );
Original file line number Diff line number Diff line change @@ -97,7 +97,8 @@ function testOtlpFileExporter(testCase)
97
97
% fetch result
98
98
forceFlush(p );
99
99
clear(" ct" , " mt" , " p" );
100
- results = jsondecode(fileread(alias ));
100
+ resultstxt = readlines(alias );
101
+ results = jsondecode(resultstxt(1 ));
101
102
102
103
% verify meter and counter names
103
104
verifyEqual(testCase , string(results .resourceMetrics .scopeMetrics .metrics .name ), countername );
Original file line number Diff line number Diff line change @@ -189,7 +189,8 @@ function testOtlpFileExporter(testCase)
189
189
clear(" sp" , " tr" , " tp" );
190
190
191
191
% perform test comparisons
192
- results = jsondecode(fileread(alias ));
192
+ resultstxt = readlines(alias );
193
+ results = jsondecode(resultstxt(1 ));
193
194
194
195
% check span and tracer names
195
196
verifyEqual(testCase , string(results .resourceSpans .scopeSpans .spans .name ), spanname );
You can’t perform that action at this time.
0 commit comments