Skip to content

Commit 5744549

Browse files
💻 add otlp config (#10)
1 parent fbdb6b1 commit 5744549

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎internal/config/monitor.go‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ type Monitor struct {
2222
Timeout int64 `json:"timeout,omitempty" ,yaml:"timeout,omitempty"`
2323
// Assertions to run on the response
2424
Assertions []Assertion `json:"assertions,omitempty" ,yaml:"assertions,omitempty"`
25+
// OpenTelemetry configuration
26+
OpenTelemetry OpenTelemetryConfig `json:"openTelemetry,omitempty" ,yaml:"openTelemetry,omitempty"`
2527
}
2628

2729
type Assertion struct {
@@ -52,6 +54,11 @@ type Request struct {
5254
Port int64 `json:"port,omitempty" ,yaml:"port,omitempty"`
5355
}
5456

57+
type OpenTelemetryConfig struct {
58+
Endpoint string `json:"endpoint,omitempty" ,yaml:"endpoint,omitempty"`
59+
Headers map[string]string `json:"headers,omitempty" ,yaml:"headers,omitempty"`
60+
}
61+
5562
// Comparison operator
5663
type Compare string
5764

0 commit comments

Comments
 (0)