Skip to content

Commit 2ca110a

Browse files
authored
feat(telemetry): report binary version (#5303)
1 parent f9feb2c commit 2ca110a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/splunk/data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type MonitoringData struct {
1919
PipelineUrlHash string `json:"PipelineUrlHash,omitempty"`
2020
BuildUrlHash string `json:"BuildUrlHash,omitempty"`
2121
Orchestrator string `json:"Orchestrator,omitempty"`
22+
PiperCommitHash string `json:"PiperCommitHash,omitempty"`
2223
StageName string `json:"StageName,omitempty"`
2324
StepName string `json:"StepName,omitempty"`
2425
ExitCode string `json:"ExitCode,omitempty"`
@@ -38,7 +39,6 @@ type LogFileEvent struct {
3839
Source string `json:"source"` // optional description of the source of the event; typically the app's name
3940
SourceType string `json:"sourcetype"` // optional name of a Splunk parsing configuration; this is usually inferred by Splunk
4041
Index string `json:"index"` // optional name of the Splunk index to store the event in; not required if the token has a default index set in Splunk
41-
4242
}
4343

4444
type DetailsTelemetry struct {

pkg/splunk/splunk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func (s *Splunk) prepareTelemetry(telemetryData telemetry.Data) MonitoringData {
115115
PipelineUrlHash: telemetryData.PipelineURLHash,
116116
BuildUrlHash: telemetryData.BuildURLHash,
117117
Orchestrator: telemetryData.Orchestrator,
118+
PiperCommitHash: telemetryData.PiperCommitHash,
118119
StageName: telemetryData.StageName,
119120
StepName: telemetryData.BaseData.StepName,
120121
ExitCode: telemetryData.CustomData.ErrorCode,

0 commit comments

Comments
 (0)