diff options
author | Uri Baghin <uri@canva.com> | 2023-05-13 12:27:56 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-13 12:27:56 +1000 |
commit | ff1f622c8131ec3cad0d331baea296419f19b422 (patch) | |
tree | 67de5b5bc4ac3c11d2354ee00a5cab1033762583 /pkgs/tools/misc/opentelemetry-collector | |
parent | abae31311a664c9851ef0dcc1ecb5f0d42f19ca1 (diff) | |
parent | c1519635ae365ed51de7494dd6688b16e58e0501 (diff) | |
download | nixpkgs-ff1f622c8131ec3cad0d331baea296419f19b422.tar nixpkgs-ff1f622c8131ec3cad0d331baea296419f19b422.tar.gz nixpkgs-ff1f622c8131ec3cad0d331baea296419f19b422.tar.bz2 nixpkgs-ff1f622c8131ec3cad0d331baea296419f19b422.tar.lz nixpkgs-ff1f622c8131ec3cad0d331baea296419f19b422.tar.xz nixpkgs-ff1f622c8131ec3cad0d331baea296419f19b422.tar.zst nixpkgs-ff1f622c8131ec3cad0d331baea296419f19b422.zip |
Merge pull request #230746 from tylerjl/otel-collector-contrib-76
opentelemetry-collector-contrib: 0.66.0 -> 0.76.1
Diffstat (limited to 'pkgs/tools/misc/opentelemetry-collector')
-rw-r--r-- | pkgs/tools/misc/opentelemetry-collector/contrib.nix | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/pkgs/tools/misc/opentelemetry-collector/contrib.nix b/pkgs/tools/misc/opentelemetry-collector/contrib.nix index f5e3e8891d8..93b2fde32a2 100644 --- a/pkgs/tools/misc/opentelemetry-collector/contrib.nix +++ b/pkgs/tools/misc/opentelemetry-collector/contrib.nix @@ -2,28 +2,45 @@ , fetchFromGitHub , lib , stdenv +, systemdMinimal +, withSystemd ? false }: buildGoModule rec { pname = "opentelemetry-collector-contrib"; - version = "0.66.0"; + version = "0.76.1"; src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-collector-contrib"; rev = "v${version}"; - sha256 = "sha256-FT5AoqCHNf2sdKyejALOsL/zHrrxP7vdntagR9vA00I="; + sha256 = "sha256-Aeiq9IJReUxJUpeq5mSReK5foC5aY4fMSZli0ZUjYPc="; }; # proxy vendor to avoid hash missmatches between linux and macOS proxyVendor = true; - vendorSha256 = "sha256-65bfTCMRJ8iL5ABGPqvkayw4zSn4KkCriEkWYa0Pe68="; + vendorSha256 = "sha256-vLbx/qmSZuteuvChnyA/wcEcIjU3zWkxSjfk8VBdgU4="; - subPackages = [ "cmd/otelcontribcol" ]; + # there is a nested go.mod + sourceRoot = "source/cmd/otelcontribcol"; # CGO_ENABLED=0 required for mac - "error: 'TARGET_OS_MAC' is not defined, evaluates to 0" # https://github.com/shirou/gopsutil/issues/976 CGO_ENABLED = if stdenv.isLinux then 1 else 0; + # journalctl is required in-$PATH for the journald receiver tests. + nativeCheckInputs = lib.optionals stdenv.isLinux [ systemdMinimal ]; + + # We don't inject the package into propagatedBuildInputs unless + # asked to avoid hard-requiring a large package. For the journald + # receiver to work, journalctl will need to be available in-$PATH, + # so expose this as an option for those who want more control over + # it instead of trusting the global $PATH. + propagatedBuildInputs = lib.optionals withSystemd [ systemdMinimal ]; + + # This test fails on darwin for mysterious reasons. + checkFlags = lib.optionals stdenv.isDarwin + [ "-skip" "TestDefaultExtensions/memory_ballast" ]; + ldflags = [ "-s" "-w" |