@@ -143,8 +143,8 @@ func TestCopy(t *testing.T) {
143
143
entry .Body = "test"
144
144
entry .Attributes = map [string ]interface {}{"label" : "value" }
145
145
entry .Resource = map [string ]interface {}{"resource" : "value" }
146
- entry .TraceId = []byte {0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a , 0x0b , 0x0c , 0x0d , 0x0e , 0x0f }
147
- entry .SpanId = []byte {0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 }
146
+ entry .TraceID = []byte {0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a , 0x0b , 0x0c , 0x0d , 0x0e , 0x0f }
147
+ entry .SpanID = []byte {0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 }
148
148
entry .TraceFlags = []byte {0x01 }
149
149
entry .ScopeName = "my.logger"
150
150
copy := entry .Copy ()
@@ -155,8 +155,8 @@ func TestCopy(t *testing.T) {
155
155
entry .Body = "new"
156
156
entry .Attributes = map [string ]interface {}{"label" : "new value" }
157
157
entry .Resource = map [string ]interface {}{"resource" : "new value" }
158
- entry .TraceId [0 ] = 0xff
159
- entry .SpanId [0 ] = 0xff
158
+ entry .TraceID [0 ] = 0xff
159
+ entry .SpanID [0 ] = 0xff
160
160
entry .TraceFlags [0 ] = 0xff
161
161
entry .ScopeName = "foo"
162
162
@@ -167,8 +167,8 @@ func TestCopy(t *testing.T) {
167
167
require .Equal (t , map [string ]interface {}{"label" : "value" }, copy .Attributes )
168
168
require .Equal (t , map [string ]interface {}{"resource" : "value" }, copy .Resource )
169
169
require .Equal (t , "test" , copy .Body )
170
- require .Equal (t , []byte {0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a , 0x0b , 0x0c , 0x0d , 0x0e , 0x0f }, copy .TraceId )
171
- require .Equal (t , []byte {0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 }, copy .SpanId )
170
+ require .Equal (t , []byte {0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a , 0x0b , 0x0c , 0x0d , 0x0e , 0x0f }, copy .TraceID )
171
+ require .Equal (t , []byte {0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 }, copy .SpanID )
172
172
require .Equal (t , []byte {0x01 }, copy .TraceFlags )
173
173
require .Equal (t , "my.logger" , copy .ScopeName )
174
174
}
@@ -185,8 +185,8 @@ func TestCopyNil(t *testing.T) {
185
185
entry .Body = "new"
186
186
entry .Attributes = map [string ]interface {}{"label" : "new value" }
187
187
entry .Resource = map [string ]interface {}{"resource" : "new value" }
188
- entry .TraceId = []byte {0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a , 0x0b , 0x0c , 0x0d , 0x0e , 0x0f }
189
- entry .SpanId = []byte {0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x00 , 0x01 , 0x02 , 0x03 }
188
+ entry .TraceID = []byte {0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x09 , 0x0a , 0x0b , 0x0c , 0x0d , 0x0e , 0x0f }
189
+ entry .SpanID = []byte {0x04 , 0x05 , 0x06 , 0x07 , 0x08 , 0x00 , 0x01 , 0x02 , 0x03 }
190
190
entry .TraceFlags = []byte {0x01 }
191
191
entry .ScopeName = "foo"
192
192
@@ -197,8 +197,8 @@ func TestCopyNil(t *testing.T) {
197
197
require .Equal (t , map [string ]interface {}{}, copy .Attributes )
198
198
require .Equal (t , map [string ]interface {}{}, copy .Resource )
199
199
require .Equal (t , nil , copy .Body )
200
- require .Equal (t , []byte {}, copy .TraceId )
201
- require .Equal (t , []byte {}, copy .SpanId )
200
+ require .Equal (t , []byte {}, copy .TraceID )
201
+ require .Equal (t , []byte {}, copy .SpanID )
202
202
require .Equal (t , []byte {}, copy .TraceFlags )
203
203
require .Equal (t , "" , copy .ScopeName )
204
204
}
0 commit comments