Skip to content

Commit

Permalink
undo bad refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjb committed Jul 12, 2024
1 parent 3f5dcf6 commit dadd8c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/logger/telemetry_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type ActionEvalData struct {

// RuleEvalData reports
type RuleEvalData struct {
RuleType RuleType `json:"ruletypes"`
RuleType RuleType `json:"ruletype"`
Profile Profile `json:"profile"`

EvalResult string `json:"eval_result"`
Expand Down Expand Up @@ -88,7 +88,7 @@ type TelemetryStore struct {
Profile Profile `json:"profile"`

// RuleType is the rule type that the request was associated with.
RuleType RuleType `json:"ruletypes"`
RuleType RuleType `json:"ruletype"`

// Data from RPCs

Expand Down Expand Up @@ -193,7 +193,7 @@ func (ts *TelemetryStore) Record(e *zerolog.Event) *zerolog.Event {
e.Any("profile", ts.Profile)
}
if ts.RuleType != (RuleType{}) {
e.Any("ruletypes", ts.RuleType)
e.Any("ruletype", ts.RuleType)
}
if len(ts.Evals) > 0 {
e.Any("rules", ts.Evals)
Expand Down

0 comments on commit dadd8c6

Please sign in to comment.