Skip to content

Commit 31610b8

Browse files
committed
Add GRPC to yaml build
poc functional tests
1 parent 5bad609 commit 31610b8

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

ci/do_ci.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ elif [[ "$1" == "cmake.maintainer.yaml.test" ]]; then
223223
rm -rf *
224224
cmake "${CMAKE_OPTIONS[@]}" \
225225
-DWITH_OTLP_HTTP=ON \
226+
-DWITH_OTLP_GRPC=ON \
226227
-DWITH_OTLP_FILE=ON \
227228
-DWITH_PROMETHEUS=ON \
228229
-DWITH_EXAMPLES=ON \

functional/configuration/main.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ int main(int argc, char *argv[])
289289

290290
InitOtel(yaml_file_path);
291291

292+
// Do not record noise during payload
293+
auto level = opentelemetry::sdk::common::internal_log::LogLevel::None;
294+
opentelemetry::sdk::common::internal_log::GlobalLogHandler::SetLogLevel(level);
295+
292296
foo_library();
293297
foo_library::counter_example("yaml");
294298
foo_library::observable_counter_example("yaml");

functional/configuration/shelltests/kitchen-sink.test

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
$ otel_configuration_check --yaml shelltests/kitchen-sink.yaml
4+
$ otel_configuration_check --yaml shelltests/kitchen-sink.yaml | egrep -v "(observed_timestamp|trace_id|span_id)"
55
>
66
MODEL PARSED
77
[WARNING] attribute_limits not supported, ignoring
@@ -13,4 +13,34 @@ MODEL PARSED
1313
[WARNING] [Periodic Exporting Metric Reader] Invalid configuration: export_timeout_millis_ should be less than export_interval_millis_, using default values
1414
[WARNING] [Periodic Exporting Metric Reader] Invalid configuration: export_timeout_millis_ should be less than export_interval_millis_, using default values
1515
SDK CREATED
16+
{
17+
timestamp : 0
18+
severity_num : 5
19+
severity_text : DEBUG
20+
body : body
21+
resource :
22+
telemetry.sdk.version: 1.22.0
23+
service.version: 1.0.0
24+
double_array_key: [1.1,2.2]
25+
double_key: 1.1
26+
bool_key: 1
27+
int_array_key: [1,2]
28+
int_key: 1
29+
string_array_key: [value1,value2]
30+
string_key: value
31+
service.namespace: my-namespace
32+
telemetry.sdk.language: cpp
33+
bool_array_key: [1,0]
34+
service.name: unknown_service
35+
telemetry.sdk.name: opentelemetry
36+
attributes :
37+
event_id : 0
38+
event_name :
39+
trace_flags : 00
40+
scope :
41+
name : foo_library
42+
version :
43+
schema_url :
44+
attributes :
45+
}
1646
>= 0

0 commit comments

Comments
 (0)