Skip to content

Commit fe68d51

Browse files
authored
[EXPORTER] Upgrade to opentelemetry-proto 1.4.0 (open-telemetry#3157)
1 parent 4d9cc28 commit fe68d51

File tree

4 files changed

+15
-27
lines changed

4 files changed

+15
-27
lines changed

bazel/repository.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ def opentelemetry_cpp_deps():
8888
http_archive,
8989
name = "com_github_opentelemetry_proto",
9090
build_file = "@io_opentelemetry_cpp//bazel:opentelemetry_proto.BUILD",
91-
sha256 = "c069c0d96137cf005d34411fa67dd3b6f1f8c64af1e7fb2fe0089a41c425acd7",
92-
strip_prefix = "opentelemetry-proto-1.3.2",
91+
sha256 = "53cd32cedb27762ea2060a9c8d83e4b822de13d73b5d5d37a2db3cf55018d694",
92+
strip_prefix = "opentelemetry-proto-1.4.0",
9393
urls = [
94-
"https://github.com/open-telemetry/opentelemetry-proto/archive/v1.3.2.tar.gz",
94+
"https://github.com/open-telemetry/opentelemetry-proto/archive/v1.4.0.tar.gz",
9595
],
9696
)
9797

cmake/opentelemetry-proto.cmake

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ else()
4949
"opentelemetry-proto=[ \\t]*([A-Za-z0-9_\\.\\-]+)")
5050
set(opentelemetry-proto "${CMAKE_MATCH_1}")
5151
else()
52-
set(opentelemetry-proto "v1.3.2")
52+
set(opentelemetry-proto "v1.4.0")
5353
endif()
5454
unset(OTELCPP_THIRD_PARTY_RELEASE_CONTENT)
5555
endif()
@@ -81,10 +81,7 @@ set(LOGS_PROTO "${PROTO_PATH}/opentelemetry/proto/logs/v1/logs.proto")
8181
set(METRICS_PROTO "${PROTO_PATH}/opentelemetry/proto/metrics/v1/metrics.proto")
8282

8383
set(PROFILES_PROTO
84-
"${PROTO_PATH}/opentelemetry/proto/profiles/v1experimental/profiles.proto")
85-
set(PROFILES_EXT_PROTO
86-
"${PROTO_PATH}/opentelemetry/proto/profiles/v1experimental/pprofextended.proto"
87-
)
84+
"${PROTO_PATH}/opentelemetry/proto/profiles/v1development/profiles.proto")
8885

8986
set(TRACE_SERVICE_PROTO
9087
"${PROTO_PATH}/opentelemetry/proto/collector/trace/v1/trace_service.proto")
@@ -95,7 +92,7 @@ set(METRICS_SERVICE_PROTO
9592
)
9693

9794
set(PROFILES_SERVICE_PROTO
98-
"${PROTO_PATH}/opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto"
95+
"${PROTO_PATH}/opentelemetry/proto/collector/profiles/v1development/profiles_service.proto"
9996
)
10097

10198
set(GENERATED_PROTOBUF_PATH
@@ -138,30 +135,24 @@ set(TRACE_SERVICE_PB_H_FILE
138135
#
139136

140137
set(PROFILES_CPP_FILE
141-
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/profiles/v1experimental/profiles.pb.cc"
138+
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/profiles/v1development/profiles.pb.cc"
142139
)
143140
set(PROFILES_H_FILE
144-
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/profiles/v1experimental/profiles.pb.h"
145-
)
146-
set(PROFILES_EXT_CPP_FILE
147-
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/profiles/v1experimental/pprofextended.pb.cc"
148-
)
149-
set(PROFILES_EXT_H_FILE
150-
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/profiles/v1experimental/pprofextended.pb.h"
141+
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/profiles/v1development/profiles.pb.h"
151142
)
152143
set(PROFILES_SERVICE_PB_H_FILE
153-
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/collector/profiles/v1experimental/profiles_service.pb.h"
144+
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/collector/profiles/v1development/profiles_service.pb.h"
154145
)
155146
set(PROFILES_SERVICE_PB_CPP_FILE
156-
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/collector/profiles/v1experimental/profiles_service.pb.cc"
147+
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/collector/profiles/v1development/profiles_service.pb.cc"
157148
)
158149

159150
if(WITH_OTLP_GRPC)
160151
set(PROFILES_SERVICE_GRPC_PB_H_FILE
161-
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/collector/profiles/v1experimental/profiles_service.grpc.pb.h"
152+
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/collector/profiles/v1development/profiles_service.grpc.pb.h"
162153
)
163154
set(PROFILES_SERVICE_GRPC_PB_CPP_FILE
164-
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/collector/profiles/v1experimental/profiles_service.grpc.pb.cc"
155+
"${GENERATED_PROTOBUF_PATH}/opentelemetry/proto/collector/profiles/v1development/profiles_service.grpc.pb.cc"
165156
)
166157
endif()
167158

@@ -243,8 +234,6 @@ set(PROTOBUF_GENERATED_FILES
243234
${METRICS_PB_CPP_FILE}
244235
${PROFILES_H_FILE}
245236
${PROFILES_CPP_FILE}
246-
${PROFILES_EXT_H_FILE}
247-
${PROFILES_EXT_CPP_FILE}
248237
${TRACE_SERVICE_PB_H_FILE}
249238
${TRACE_SERVICE_PB_CPP_FILE}
250239
${LOGS_SERVICE_PB_H_FILE}
@@ -283,7 +272,6 @@ foreach(
283272
${LOGS_PROTO}
284273
${METRICS_PROTO}
285274
${PROFILES_PROTO}
286-
${PROFILES_EXT_PROTO}
287275
${TRACE_SERVICE_PROTO}
288276
${LOGS_SERVICE_PROTO}
289277
${METRICS_SERVICE_PROTO}
@@ -298,7 +286,7 @@ add_custom_command(
298286
${PROTOBUF_PROTOC_EXECUTABLE} ${PROTOBUF_COMMON_FLAGS}
299287
${PROTOBUF_INCLUDE_FLAGS} ${COMMON_PROTO} ${RESOURCE_PROTO} ${TRACE_PROTO}
300288
${LOGS_PROTO} ${METRICS_PROTO} ${TRACE_SERVICE_PROTO} ${LOGS_SERVICE_PROTO}
301-
${METRICS_SERVICE_PROTO} ${PROFILES_PROTO} ${PROFILES_EXT_PROTO}
289+
${METRICS_SERVICE_PROTO} ${PROFILES_PROTO}
302290
${PROFILES_SERVICE_PROTO}
303291
COMMENT "[Run]: ${PROTOBUF_RUN_PROTOC_COMMAND}")
304292

third_party_release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ benchmark=v1.8.3
1919
googletest=1.14.0
2020
ms-gsl=v3.1.0-67-g6f45293
2121
nlohmann-json=v3.11.3
22-
opentelemetry-proto=v1.3.2
22+
opentelemetry-proto=v1.4.0
2323
opentracing-cpp=v1.6.0
2424
prometheus-cpp=v1.3.0
2525
vcpkg=2024.02.14

0 commit comments

Comments
 (0)