Skip to content

Commit 9eba12d

Browse files
committed
app/vlinsert/opentelemetry: rename exportLogsServiceRequest struct to logsData in order to be in sync with decodeLogsData() function name
1 parent b8fa254 commit 9eba12d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/vlinsert/opentelemetry/opentelemetry_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestPushProtobufRequest(t *testing.T) {
2323
t.Fatalf("unexpected error when parsing JSON: %s", err)
2424
}
2525

26-
lr := exportLogsServiceRequest{
26+
lr := logsData{
2727
ResourceLogs: rls,
2828
}
2929

@@ -366,21 +366,21 @@ func TestPushProtobufRequest(t *testing.T) {
366366

367367
var mp easyproto.MarshalerPool
368368

369-
// exportLogsServiceRequest represents the corresponding OTEL protobuf message.
370-
type exportLogsServiceRequest struct {
369+
// logsData represents the corresponding OTEL protobuf message.
370+
type logsData struct {
371371
ResourceLogs []resourceLogs `json:"resourceLogs,omitzero"`
372372
}
373373

374374
// MarshalProtobuf marshals r to a protobuf message, appends it to dst and returns the result.
375-
func (r *exportLogsServiceRequest) marshalProtobuf(dst []byte) []byte {
375+
func (r *logsData) marshalProtobuf(dst []byte) []byte {
376376
m := mp.Get()
377377
r.marshalProtobufInternal(m.MessageMarshaler())
378378
dst = m.Marshal(dst)
379379
mp.Put(m)
380380
return dst
381381
}
382382

383-
func (r *exportLogsServiceRequest) marshalProtobufInternal(mm *easyproto.MessageMarshaler) {
383+
func (r *logsData) marshalProtobufInternal(mm *easyproto.MessageMarshaler) {
384384
for _, rm := range r.ResourceLogs {
385385
rm.marshalProtobuf(mm.AppendMessage(1))
386386
}

app/vlinsert/opentelemetry/opentelemetry_timing_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func getProtobufBody(scopesCount, rowsCount, attributesCount int) []byte {
6262
}
6363
}
6464

65-
pr := exportLogsServiceRequest{
65+
pr := logsData{
6666
ResourceLogs: []resourceLogs{
6767
{
6868
Resource: resource{

0 commit comments

Comments
 (0)