Skip to content

Commit 10fa3be

Browse files
authored
Merge pull request #133 from open-telemetry/main
merged from upstream
2 parents ab7f924 + 4998eb1 commit 10fa3be

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Increment the:
2121
* [SDK] Fix instrumentation scope attributes evaluated in equal method
2222
[#3214](https://github.com/open-telemetry/opentelemetry-cpp/pull/3214)
2323

24+
* [EXPORTER] Fix scope attributes missing from otlp traces metrics
25+
[#3185](https://github.com/open-telemetry/opentelemetry-cpp/pull/3185)
26+
2427
## [1.18 2024-11-25]
2528

2629
* [EXPORTER] Fix crash in ElasticsearchLogRecordExporter
@@ -155,9 +158,6 @@ Increment the:
155158
* [bazel] Update opentelemetry-proto in MODULE.bazel
156159
[#3163](https://github.com/open-telemetry/opentelemetry-cpp/pull/3163)
157160

158-
* [EXPORTER] Fix scope attributes missing from otlp traces metrics
159-
[#3185](https://github.com/open-telemetry/opentelemetry-cpp/pull/3185)
160-
161161
Important changes:
162162

163163
* [API] Jaeger Propagator should not be deprecated

functional/otlp/run_test.sh

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ export CERT_DIR=../cert
1515

1616
export TEST_BIN_DIR=${BUILD_DIR}/functional/otlp/
1717

18+
# SELINUX
19+
# https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label
20+
21+
USE_MOUNT_OPTION=""
22+
23+
if [ -x "$(command -v getenforce)" ]; then
24+
SELINUXSTATUS=$(getenforce);
25+
if [ "${SELINUXSTATUS}" == "Enforcing" ]; then
26+
echo "Detected SELINUX"
27+
USE_MOUNT_OPTION=":z"
28+
fi;
29+
fi
30+
1831
${TEST_BIN_DIR}/func_otlp_http --list > test_list.txt
1932

2033
#
@@ -44,7 +57,7 @@ echo ""
4457

4558

4659
docker run -d \
47-
-v `pwd`/otel-docker-config-http.yaml:/otel-cpp/otel-config.yaml \
60+
-v `pwd`/otel-docker-config-http.yaml:/otel-cpp/otel-config.yaml${USE_MOUNT_OPTION} \
4861
-p 4318:4318 \
4962
--name otelcpp-test-http \
5063
otelcpp-func-test
@@ -74,10 +87,10 @@ echo "###############################################################"
7487
echo ""
7588

7689
docker run -d \
77-
-v `pwd`/otel-docker-config-https.yaml:/otel-cpp/otel-config.yaml \
78-
-v `pwd`/../cert/ca.pem:/otel-cpp/ca.pem \
79-
-v `pwd`/../cert/server_cert.pem:/otel-cpp/server_cert.pem \
80-
-v `pwd`/../cert/server_cert-key.pem:/otel-cpp/server_cert-key.pem \
90+
-v `pwd`/otel-docker-config-https.yaml:/otel-cpp/otel-config.yaml${USE_MOUNT_OPTION} \
91+
-v `pwd`/../cert/ca.pem:/otel-cpp/ca.pem${USE_MOUNT_OPTION} \
92+
-v `pwd`/../cert/server_cert.pem:/otel-cpp/server_cert.pem${USE_MOUNT_OPTION} \
93+
-v `pwd`/../cert/server_cert-key.pem:/otel-cpp/server_cert-key.pem${USE_MOUNT_OPTION} \
8194
-p 4318:4318 \
8295
--name otelcpp-test-https \
8396
otelcpp-func-test

0 commit comments

Comments
 (0)