From ddab36de4322c415350dfa897a789c1929fa3c92 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 13 Jul 2023 22:20:44 -0400 Subject: [PATCH] opentelemetry-cpp 1.10.0 opentelemetry-cpp: remove deprecated option opentelemetry-cpp: fix test Co-authored-by: Rui Chen Co-authored-by: Sean Molenaar --- Formula/opentelemetry-cpp.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Formula/opentelemetry-cpp.rb b/Formula/opentelemetry-cpp.rb index 1ac7dcd8c9cf..62c207bca5e9 100644 --- a/Formula/opentelemetry-cpp.rb +++ b/Formula/opentelemetry-cpp.rb @@ -2,8 +2,8 @@ class OpentelemetryCpp < Formula desc "OpenTelemetry C++ Client" homepage "https://opentelemetry.io/" # TODO: Check if we can use unversioned `grpc` and `protobuf` at version bump. - url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.9.1.tar.gz" - sha256 "668de24f81c8d36d75092ad9dcb02a97cd41473adbe72485ece05e336db48249" + url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.10.0.tar.gz" + sha256 "19e8ade04a674c8cf7f0dc6da1f7b0583a27d2cf4dbc03df87894a16a4547834" license "Apache-2.0" head "https://github.com/open-telemetry/opentelemetry-cpp.git", branch: "main" @@ -36,7 +36,6 @@ def install "-DWITH_JAEGER=OFF", # deprecated, needs older `thrift` "-DWITH_LOGS_PREVIEW=ON", "-DWITH_METRICS_PREVIEW=ON", - "-DWITH_OTLP=ON", "-DWITH_OTLP_GRPC=ON", "-DWITH_OTLP_HTTP=ON", "-DWITH_PROMETHEUS=ON", @@ -69,7 +68,7 @@ def install // Set the global trace provider trace_api::Provider::SetTracerProvider(provider); - auto tracer = provider->GetTracer("library", OPENTELEMETRY_SDK_VERSION); + auto tracer = provider->GetTracer("foo_library", "1.0.0"); auto scoped_span = trace_api::Scope(tracer->StartSpan("test")); } EOS