Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions internal/config/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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

Expand Down