Skip to content

Commit

Permalink
chore(logstorage): remove unused type field
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed May 31, 2024
1 parent 0cf3d04 commit e32cd60
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions integration/lokie2e/loki_e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func NewBatchSet() *BatchSet {
s.addLabel(logstorage.Label{
Name: logstorage.LabelSeverity,
Value: i.String(),
Type: int32(pcommon.ValueTypeStr),
})
}

Expand Down Expand Up @@ -113,7 +112,6 @@ func (s *BatchSet) addLabels(m pcommon.Map) {
s.addLabel(logstorage.Label{
Name: k,
Value: v.AsString(),
Type: int32(t),
})
}
return true
Expand Down
2 changes: 1 addition & 1 deletion internal/logstorage/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (c *Consumer) ConsumeLogs(ctx context.Context, logs plog.Logs) error {
switch t := v.Type(); t {
case pcommon.ValueTypeMap, pcommon.ValueTypeSlice:
default:
labels[Label{k, v.AsString(), int32(t)}] = struct{}{}
labels[Label{k, v.AsString()}] = struct{}{}
}
return true
})
Expand Down
1 change: 0 additions & 1 deletion internal/logstorage/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ type Record struct {
type Label struct {
Name string `json:"name"`
Value string `json:"value"`
Type int32 `json:"type"`
}

0 comments on commit e32cd60

Please sign in to comment.