@@ -44,61 +44,49 @@ void main() {
44
44
final log1 = sdk.LogRecord (
45
45
resource: resource,
46
46
instrumentationScope: instrumentationLibrary,
47
- logRecord: api.LogRecord (
48
- context: context,
49
- body: 'test log' ,
50
- severityNumber: api.Severity .fatal3,
51
- ),
47
+ body: 'test log' ,
48
+ severityNumber: api.Severity .fatal3,
52
49
logRecordLimits: logLimit,
53
50
context: context,
54
51
timeProvider: FakeTimeProvider (now: Int64 (123 )))
55
52
..setAttribute ('key' , 'value' );
56
53
57
54
final log2 = sdk.LogRecord (
58
- resource: resource,
59
- instrumentationScope: instrumentationLibrary,
60
- logRecord: api.LogRecord (
61
- context: context,
62
- body: 2 ,
63
- severityNumber: api.Severity .fatal3,
64
- attributes: sdk.Attributes .empty ()
65
- ..addAll ([
66
- api.Attribute .fromBoolean ('fromBoolean' , false ),
67
- api.Attribute .fromDouble ('fromDouble' , 1.1 ),
68
- api.Attribute .fromInt ('fromInt' , 1 ),
69
- api.Attribute .fromBooleanList ('fromBooleanList' , [false ]),
70
- api.Attribute .fromDoubleList ('fromDoubleList' , [1.1 ]),
71
- api.Attribute .fromIntList ('fromIntList' , [1 ]),
72
- ]),
73
- ),
74
- logRecordLimits: logLimit,
75
- context: context,
76
- timeProvider: FakeTimeProvider (now: Int64 (123 )))
77
- ..setAttribute ('key' , 'value' );
55
+ resource: resource,
56
+ instrumentationScope: instrumentationLibrary,
57
+ context: context,
58
+ body: 2 ,
59
+ severityNumber: api.Severity .fatal3,
60
+ attributes: sdk.Attributes .empty ()
61
+ ..addAll ([
62
+ api.Attribute .fromBoolean ('fromBoolean' , false ),
63
+ api.Attribute .fromDouble ('fromDouble' , 1.1 ),
64
+ api.Attribute .fromInt ('fromInt' , 1 ),
65
+ api.Attribute .fromBooleanList ('fromBooleanList' , [false ]),
66
+ api.Attribute .fromDoubleList ('fromDoubleList' , [1.1 ]),
67
+ api.Attribute .fromIntList ('fromIntList' , [1 ]),
68
+ ]),
69
+ logRecordLimits: logLimit,
70
+ timeProvider: FakeTimeProvider (now: Int64 (123 )),
71
+ )..setAttribute ('key' , 'value' );
78
72
79
73
final log3 = sdk.LogRecord (
80
74
resource: resource,
81
75
instrumentationScope: instrumentationLibrary,
82
- logRecord: api.LogRecord (
83
- context: context,
84
- body: 2.2 ,
85
- severityNumber: api.Severity .fatal3,
86
- ),
87
- logRecordLimits: logLimit,
88
76
context: context,
77
+ body: 2.2 ,
78
+ severityNumber: api.Severity .fatal3,
79
+ logRecordLimits: logLimit,
89
80
timeProvider: FakeTimeProvider (now: Int64 (123 )))
90
81
..setAttribute ('key' , 'value' );
91
82
92
83
final log4 = sdk.LogRecord (
93
84
resource: resource,
94
85
instrumentationScope: instrumentationLibrary,
95
- logRecord: api.LogRecord (
96
- context: context,
97
- body: true ,
98
- severityNumber: api.Severity .fatal3,
99
- ),
100
- logRecordLimits: logLimit,
101
86
context: context,
87
+ body: true ,
88
+ severityNumber: api.Severity .fatal3,
89
+ logRecordLimits: logLimit,
102
90
timeProvider: FakeTimeProvider (now: Int64 (123 )))
103
91
..setAttribute ('key' , 'value' );
104
92
@@ -198,13 +186,10 @@ void main() {
198
186
199
187
final log1 = sdk.LogRecord (
200
188
instrumentationScope: instrumentationLibrary,
201
- logRecord: api.LogRecord (
202
- context: context,
203
- body: 'test log' ,
204
- severityNumber: api.Severity .fatal3,
205
- ),
206
- logRecordLimits: logLimit,
207
189
context: context,
190
+ body: 'test log' ,
191
+ severityNumber: api.Severity .fatal3,
192
+ logRecordLimits: logLimit,
208
193
timeProvider: FakeTimeProvider (now: Int64 (123 )))
209
194
..setAttribute ('key' , 'value' );
210
195
@@ -226,11 +211,8 @@ void main() {
226
211
227
212
final log1 = sdk.LogRecord (
228
213
instrumentationScope: instrumentationLibrary,
229
- logRecord: api.LogRecord (
230
- context: context,
231
- body: 'test log' ,
232
- severityNumber: api.Severity .fatal3,
233
- ),
214
+ body: 'test log' ,
215
+ severityNumber: api.Severity .fatal3,
234
216
logRecordLimits: logLimit,
235
217
context: context,
236
218
timeProvider: FakeTimeProvider (now: Int64 (123 )))
0 commit comments