We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de1c7f2 commit 5c96c4cCopy full SHA for 5c96c4c
internal/telemetry/componentattribute/logger_test.go
@@ -99,10 +99,10 @@ func TestCore(t *testing.T) {
99
recorder := rec.otelLogs
100
101
logAttributes := make(map[string]attribute.Set)
102
- for _, scope := range recorder.Result() {
+ for scope, records := range recorder.Result() {
103
require.Equal(t, "testinstr", scope.Name)
104
- for _, record := range scope.Records {
105
- logAttributes[record.Body().String()] = scope.Attributes
+ for _, record := range records {
+ logAttributes[record.Body.String()] = scope.Attributes
106
}
107
108
0 commit comments