diff --git a/integration/lokie2e/loki_e2e.go b/integration/lokie2e/loki_e2e.go index 29e69c04..78ac62ac 100644 --- a/integration/lokie2e/loki_e2e.go +++ b/integration/lokie2e/loki_e2e.go @@ -48,7 +48,6 @@ func NewBatchSet() *BatchSet { s.addLabel(logstorage.Label{ Name: logstorage.LabelSeverity, Value: i.String(), - Type: int32(pcommon.ValueTypeStr), }) } @@ -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 diff --git a/internal/logstorage/consumer.go b/internal/logstorage/consumer.go index 130e3084..5878dd9a 100644 --- a/internal/logstorage/consumer.go +++ b/internal/logstorage/consumer.go @@ -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 }) diff --git a/internal/logstorage/schema.go b/internal/logstorage/schema.go index cf3a2d68..d0bdad26 100644 --- a/internal/logstorage/schema.go +++ b/internal/logstorage/schema.go @@ -41,5 +41,4 @@ type Record struct { type Label struct { Name string `json:"name"` Value string `json:"value"` - Type int32 `json:"type"` }