From 16f526785baa3f25248fe62e873cd3e02d176c94 Mon Sep 17 00:00:00 2001 From: Clinton Blackburn Date: Sun, 20 Oct 2024 09:18:56 -0700 Subject: [PATCH] Using custom User-Agent for OTLP exports (#4) This will let us easily know which lane is sending data when viewing collector load balancer logs. --- config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.yml b/config.yml index f807ad7..9299d69 100644 --- a/config.yml +++ b/config.yml @@ -82,6 +82,8 @@ exporters: endpoint: "https://otel-http.vori.com" auth: authenticator: oauth2client + headers: + User-Agent: "voripos-otel-collector/${env:VORIPOS_OTEL_COLLECTOR_VERSION} (voripos; banner_id:${env:VORIPOS_BANNER_ID} store_id:${env:VORIPOS_STORE_ID} lane_id:${env:VORIPOS_LANE_ID}) ${env:VORIPOS_BANNER_NAME}, ${env:VORIPOS_STORE_NAME}, ${env:VORIPOS_LANE_NAME}" service: extensions: [oauth2client]