From e297e16cfbbc3d51643c9888f933e42b3eed5a73 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 8 Jan 2025 18:54:02 +0100 Subject: [PATCH] feat(direnv): opentelemetry env vars for development --- .envrc.recommended | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.envrc.recommended b/.envrc.recommended index 783a3af..d8fa4b9 100644 --- a/.envrc.recommended +++ b/.envrc.recommended @@ -1,4 +1,8 @@ nix_direnv_manual_reload use flake export DATABASE_URL=postgresql://patagia:swordfish@/patagia?host=$XDG_RUNTIME_DIR/patagia-postgres +export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL="http/protobuf" +export OTEL_RESOURCE_ATTRIBUTES=host.name=$HOSTNAME +export OTEL_SERVICE_NAME=$USER.patagia-control +export OTEL_TRACES_SAMPLER=always_on dotenv_if_exists