From ce7854b71813b4f6c4e7f2c9853731f6d264bb66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Wed, 30 Oct 2024 14:04:25 +0100 Subject: [PATCH] fmt --- exporters/otlp/otlplog/otlploggrpc/internal/transform/log.go | 2 +- exporters/otlp/otlplog/otlploghttp/internal/transform/log.go | 2 +- internal/shared/otlp/otlplog/transform/log.go.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exporters/otlp/otlplog/otlploggrpc/internal/transform/log.go b/exporters/otlp/otlplog/otlploggrpc/internal/transform/log.go index ff8bab8696f..03e9d8c71cd 100644 --- a/exporters/otlp/otlplog/otlploggrpc/internal/transform/log.go +++ b/exporters/otlp/otlplog/otlploggrpc/internal/transform/log.go @@ -50,7 +50,7 @@ func ResourceLogs(records []log.Record) []*lpb.ResourceLogs { var emptyScope instrumentation.Scope if scope != emptyScope { sl.Scope = &cpb.InstrumentationScope{ - Name: scope.Name, + Name: scope.Name, Version: scope.Version, Attributes: AttrIter(scope.Attributes.Iter()), } diff --git a/exporters/otlp/otlplog/otlploghttp/internal/transform/log.go b/exporters/otlp/otlplog/otlploghttp/internal/transform/log.go index f396be88abf..4b52a14ebc6 100644 --- a/exporters/otlp/otlplog/otlploghttp/internal/transform/log.go +++ b/exporters/otlp/otlplog/otlploghttp/internal/transform/log.go @@ -50,7 +50,7 @@ func ResourceLogs(records []log.Record) []*lpb.ResourceLogs { var emptyScope instrumentation.Scope if scope != emptyScope { sl.Scope = &cpb.InstrumentationScope{ - Name: scope.Name, + Name: scope.Name, Version: scope.Version, Attributes: AttrIter(scope.Attributes.Iter()), } diff --git a/internal/shared/otlp/otlplog/transform/log.go.tmpl b/internal/shared/otlp/otlplog/transform/log.go.tmpl index f396be88abf..4b52a14ebc6 100644 --- a/internal/shared/otlp/otlplog/transform/log.go.tmpl +++ b/internal/shared/otlp/otlplog/transform/log.go.tmpl @@ -50,7 +50,7 @@ func ResourceLogs(records []log.Record) []*lpb.ResourceLogs { var emptyScope instrumentation.Scope if scope != emptyScope { sl.Scope = &cpb.InstrumentationScope{ - Name: scope.Name, + Name: scope.Name, Version: scope.Version, Attributes: AttrIter(scope.Attributes.Iter()), }