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