Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Formula/opentelemetry-cpp.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class OpentelemetryCpp < Formula
desc "OpenTelemetry C++ Client"
homepage "https://opentelemetry.io/"
url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.8.2.tar.gz"
sha256 "20fa97e507d067e9e2ab0c1accfc334f5a4b10d01312e55455dc3733748585f4"
url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.8.3.tar.gz"
sha256 "b23d3c80d2e0012734ea343d2be69b2a7139ec5545453c503b13e629eb8fbe05"
license "Apache-2.0"
head "https://github.com/open-telemetry/opentelemetry-cpp.git", branch: "main"

Expand All @@ -22,19 +22,22 @@ class OpentelemetryCpp < Formula
depends_on "nlohmann-json"
depends_on "prometheus-cpp"
depends_on "protobuf"
# TODO remove thrift dependency when Jaeger exporter is removed
# upstream PR, # https://github.com/open-telemetry/opentelemetry-cpp/pull/2031
depends_on "thrift"

uses_from_macos "curl"

def install
system "cmake", "-S", ".", "-B", "build",
"-DCMAKE_CXX_STANDARD=14",
"-DCMAKE_CXX_STANDARD_REQUIRED=TRUE",
"-DCMAKE_INSTALL_RPATH=#{rpath}",
"-DBUILD_TESTING=OFF",
"-DWITH_ELASTICSEARCH=ON",
"-DWITH_EXAMPLES=OFF",
"-DWITH_JAEGER=ON",
# upstream PR to remove Jaeger exporter
"-DWITH_JAEGER=OFF",
"-DWITH_LOGS_PREVIEW=ON",
"-DWITH_METRICS_PREVIEW=ON",
"-DWITH_OTLP=ON",
"-DWITH_OTLP_GRPC=ON",
"-DWITH_OTLP_HTTP=ON",
Expand Down