Skip to content

Commit 5c96c4c

Browse files
[chore] update api usage
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent de1c7f2 commit 5c96c4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/telemetry/componentattribute/logger_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ func TestCore(t *testing.T) {
9999
recorder := rec.otelLogs
100100

101101
logAttributes := make(map[string]attribute.Set)
102-
for _, scope := range recorder.Result() {
102+
for scope, records := range recorder.Result() {
103103
require.Equal(t, "testinstr", scope.Name)
104-
for _, record := range scope.Records {
105-
logAttributes[record.Body().String()] = scope.Attributes
104+
for _, record := range records {
105+
logAttributes[record.Body.String()] = scope.Attributes
106106
}
107107
}
108108

0 commit comments

Comments
 (0)