From 574454996d4cab0af165e7f5fe70c898809e6e04 Mon Sep 17 00:00:00 2001 From: Thibault Le Ouay Date: Thu, 24 Jul 2025 12:45:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=BB=20add=20otlp=20config=20(#10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/config/monitor.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/config/monitor.go b/internal/config/monitor.go index 6de740a..835c505 100644 --- a/internal/config/monitor.go +++ b/internal/config/monitor.go @@ -22,6 +22,8 @@ type Monitor struct { Timeout int64 `json:"timeout,omitempty" ,yaml:"timeout,omitempty"` // Assertions to run on the response Assertions []Assertion `json:"assertions,omitempty" ,yaml:"assertions,omitempty"` + // OpenTelemetry configuration + OpenTelemetry OpenTelemetryConfig `json:"openTelemetry,omitempty" ,yaml:"openTelemetry,omitempty"` } type Assertion struct { @@ -52,6 +54,11 @@ type Request struct { Port int64 `json:"port,omitempty" ,yaml:"port,omitempty"` } +type OpenTelemetryConfig struct { + Endpoint string `json:"endpoint,omitempty" ,yaml:"endpoint,omitempty"` + Headers map[string]string `json:"headers,omitempty" ,yaml:"headers,omitempty"` +} + // Comparison operator type Compare string -- knotmirror 0.0.1