From 3ff51f2f1339b3bfc257085ba14d3107f1e2dd2e Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 17 Jun 2022 21:29:22 +0200 Subject: [PATCH] VEGAS/ipfs: log traces to Tempo --- hosts/VEGAS/services/ipfs/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/VEGAS/services/ipfs/default.nix b/hosts/VEGAS/services/ipfs/default.nix index 0ceb2f6..5f1d657 100644 --- a/hosts/VEGAS/services/ipfs/default.nix +++ b/hosts/VEGAS/services/ipfs/default.nix @@ -10,6 +10,14 @@ in aspect.modules.ipfs ]; + systemd.services.ipfs.environment = { + OTEL_TRACES_EXPORTER = "otlp"; + OTEL_EXPORTER_OTLP_PROTOCOL = "grpc"; + OTEL_EXPORTER_OTLP_ENDPOINT = "http://127.0.0.1:${config.portsStr.tempo-otlp-grpc}"; + OTEL_TRACES_SAMPLER = "parentbased_traceidratio"; + OTEL_TRACES_SAMPLER_ARG = "0.01"; + }; + systemd.slices.remotefshost.sliceConfig = { IOWeight = 5; IOReadIOPSMax = [