[opentelemetry-cpp] Fix #30491 (#30492)

* Fix #30491

* Upgrade version

* Use options and host dependency
This commit is contained in:
Kevin Lalumiere 2023-04-04 18:23:02 -04:00 committed by GitHub
parent 6ba86f3584
commit 54ee9fb002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 2 deletions

View File

@ -39,6 +39,7 @@ if(WITH_OTLP)
# Create empty .git directory to prevent opentelemetry from cloning it during build time
file(MAKE_DIRECTORY "${SOURCE_PATH}/third_party/opentelemetry-proto/.git")
list(APPEND FEATURE_OPTIONS -DCMAKE_CXX_STANDARD=14)
list(APPEND FEATURE_OPTIONS -DgRPC_CPP_PLUGIN_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/grpc/grpc_cpp_plugin${VCPKG_HOST_EXECUTABLE_SUFFIX})
endif()
vcpkg_cmake_configure(

View File

@ -2,7 +2,7 @@
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "opentelemetry-cpp",
"version-semver": "1.8.3",
"port-version": 1,
"port-version": 2,
"description": [
"OpenTelemetry is a collection of tools, APIs, and SDKs.",
"You use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) for analysis in order to understand your software's performance and behavior."
@ -39,6 +39,10 @@
"description": "Whether to include the OpenTelemetry Protocol in the SDK",
"dependencies": [
"grpc",
{
"name": "grpc",
"host": true
},
"protobuf"
]
},

View File

@ -5870,7 +5870,7 @@
},
"opentelemetry-cpp": {
"baseline": "1.8.3",
"port-version": 1
"port-version": 2
},
"opentracing": {
"baseline": "1.6.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "152ee0a0f79c1fc26d81291c9d1eb0417f9deeeb",
"version-semver": "1.8.3",
"port-version": 2
},
{
"git-tree": "3777014ad8e4997a8c0afbbc7f37ff949497059c",
"version-semver": "1.8.3",