[opentelemetry-cpp] Update to v1.8.2 (#29483)

* Update opentelemetry-cpp to v1.8.2

* Add feature description to otlp-http

* Update opentelemetry-cpp.json

* use ${VERSION} in portfile.cmake

* update version

---------

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
Co-authored-by: Lily Wang <494550702@qq.com>
This commit is contained in:
Tom Tan 2023-02-07 15:31:57 -08:00 committed by GitHub
parent ea0c13ec12
commit 0d0a01598c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 11 deletions

View File

@ -5,8 +5,8 @@ endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO open-telemetry/opentelemetry-cpp
REF v1.8.1
SHA512 4ad89ef5e154674c591d7ab49d262f23093db8b4d7cf1c69a844e24adab96cff523de0769e5dfe7b2721f5a5e18790b11020021380f587775dd660b09e65a44a
REF "v${VERSION}"
SHA512 5d3efb7c31626acd9655b795da497ef3829a88f1e33532f26d011fda01ec41e08e88539900151224f5c19161d9bc1f76e502f14a358c4e01440d832432cd0c0b
HEAD_REF main
PATCHES
support_absl_cxx17.patch
@ -20,6 +20,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
elasticsearch WITH_ELASTICSEARCH
jaeger WITH_JAEGER
otlp WITH_OTLP
otlp-http WITH_OTLP_HTTP
zpages WITH_ZPAGES
)

View File

@ -1,12 +1,11 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1b69340..193c9e39 100644
index 9df8f5ca..f68830cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -305,7 +305,11 @@ if(WITH_OTLP)
CACHE{WITH_OTLP_HTTP}))
find_package(CURL)
@@ -344,6 +344,11 @@ if(WITH_OTLP)
endif()
-
include(CMakeDependentOption)
+ if (ABSL_USE_CXX17)
+ message(STATUS "Found absl uses CXX17, enable CXX17 feature.")
+ set(CMAKE_CXX_STANDARD 17)

View File

@ -1,8 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "opentelemetry-cpp",
"version-semver": "1.8.1",
"port-version": 1,
"version-semver": "1.8.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."
@ -42,6 +41,13 @@
"protobuf"
]
},
"otlp-http": {
"description": "Whether to include the OpenTelemetry Protocol over HTTP in the SDK",
"dependencies": [
"curl",
"protobuf"
]
},
"prometheus": {
"description": "Whether to include the Prometheus Client in the SDK",
"dependencies": [

View File

@ -5713,8 +5713,8 @@
"port-version": 0
},
"opentelemetry-cpp": {
"baseline": "1.8.1",
"port-version": 1
"baseline": "1.8.2",
"port-version": 0
},
"opentracing": {
"baseline": "1.6.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b95448067d27169b9b65ed0a60e1caf832fd7e4b",
"version-semver": "1.8.2",
"port-version": 0
},
{
"git-tree": "a2a7c47fdf502e1345d3ba742ded612ba0506764",
"version-semver": "1.8.1",