Skip to content

Commit

Permalink
expose orchestrator to splunk
Browse files Browse the repository at this point in the history
  • Loading branch information
CCFenner committed Jan 20, 2025
1 parent 64ae652 commit af7b142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/splunk/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type Details struct {
type MonitoringData struct {
PipelineUrlHash string `json:"PipelineUrlHash,omitempty"`
BuildUrlHash string `json:"BuildUrlHash,omitempty"`
Orchestrator string `json:"Orchestrator,omitempty"`
StageName string `json:"StageName,omitempty"`
StepName string `json:"StepName,omitempty"`
ExitCode string `json:"ExitCode,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions pkg/splunk/splunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ func (s *Splunk) prepareTelemetry(telemetryData telemetry.Data) MonitoringData {
monitoringData := MonitoringData{
PipelineUrlHash: telemetryData.PipelineURLHash,
BuildUrlHash: telemetryData.BuildURLHash,
Orchestrator: telemetryData.Orchestrator,
StageName: telemetryData.StageName,
StepName: telemetryData.BaseData.StepName,
ExitCode: telemetryData.CustomData.ErrorCode,
Expand Down

0 comments on commit af7b142

Please sign in to comment.