@@ -33,6 +33,7 @@ func TestLoggerEmit(t *testing.T) {
33
33
p2WithError .Err = errors .New ("error" )
34
34
35
35
r := log.Record {}
36
+ r .SetEventName ("testing.name" )
36
37
r .SetTimestamp (time .Date (2000 , time .January , 1 , 0 , 0 , 0 , 0 , time .UTC ))
37
38
r .SetBody (log .StringValue ("testing body value" ))
38
39
r .SetSeverity (log .SeverityInfo )
@@ -78,6 +79,7 @@ func TestLoggerEmit(t *testing.T) {
78
79
record : r ,
79
80
expectedRecords : []Record {
80
81
{
82
+ eventName : r .EventName (),
81
83
timestamp : r .Timestamp (),
82
84
body : r .Body (),
83
85
severity : r .Severity (),
@@ -118,6 +120,7 @@ func TestLoggerEmit(t *testing.T) {
118
120
record : r ,
119
121
expectedRecords : []Record {
120
122
{
123
+ eventName : r .EventName (),
121
124
timestamp : r .Timestamp (),
122
125
body : r .Body (),
123
126
severity : r .Severity (),
@@ -151,6 +154,7 @@ func TestLoggerEmit(t *testing.T) {
151
154
record : r ,
152
155
expectedRecords : []Record {
153
156
{
157
+ eventName : r .EventName (),
154
158
timestamp : r .Timestamp (),
155
159
body : r .Body (),
156
160
severity : r .Severity (),
@@ -181,6 +185,7 @@ func TestLoggerEmit(t *testing.T) {
181
185
record : rWithNoObservedTimestamp ,
182
186
expectedRecords : []Record {
183
187
{
188
+ eventName : rWithNoObservedTimestamp .EventName (),
184
189
timestamp : rWithNoObservedTimestamp .Timestamp (),
185
190
body : rWithNoObservedTimestamp .Body (),
186
191
severity : rWithNoObservedTimestamp .Severity (),
0 commit comments