@@ -199,7 +199,7 @@ func Test_newPathGetSetter_NumberDataPoint(t *testing.T) {
199
199
orig : []byte {1 , 3 , 2 },
200
200
newVal : []byte {2 , 3 , 4 },
201
201
modified : func (datapoint pmetric.NumberDataPoint ) {
202
- datapoint .Attributes ().PutEmpty ("bytes" ). SetEmptyBytesVal ( ).FromRaw ([]byte {2 , 3 , 4 })
202
+ datapoint .Attributes ().PutEmptyBytes ("bytes" ).FromRaw ([]byte {2 , 3 , 4 })
203
203
},
204
204
},
205
205
{
@@ -525,7 +525,7 @@ func Test_newPathGetSetter_HistogramDataPoint(t *testing.T) {
525
525
orig : []byte {1 , 3 , 2 },
526
526
newVal : []byte {2 , 3 , 4 },
527
527
modified : func (datapoint pmetric.HistogramDataPoint ) {
528
- datapoint .Attributes ().PutEmpty ("bytes" ). SetEmptyBytesVal ( ).FromRaw ([]byte {2 , 3 , 4 })
528
+ datapoint .Attributes ().PutEmptyBytes ("bytes" ).FromRaw ([]byte {2 , 3 , 4 })
529
529
},
530
530
},
531
531
{
@@ -947,7 +947,7 @@ func Test_newPathGetSetter_ExpoHistogramDataPoint(t *testing.T) {
947
947
orig : []byte {1 , 3 , 2 },
948
948
newVal : []byte {2 , 3 , 4 },
949
949
modified : func (datapoint pmetric.ExponentialHistogramDataPoint ) {
950
- datapoint .Attributes ().PutEmpty ("bytes" ). SetEmptyBytesVal ( ).FromRaw ([]byte {2 , 3 , 4 })
950
+ datapoint .Attributes ().PutEmptyBytes ("bytes" ).FromRaw ([]byte {2 , 3 , 4 })
951
951
},
952
952
},
953
953
{
@@ -1254,7 +1254,7 @@ func Test_newPathGetSetter_SummaryDataPoint(t *testing.T) {
1254
1254
orig : []byte {1 , 3 , 2 },
1255
1255
newVal : []byte {2 , 3 , 4 },
1256
1256
modified : func (datapoint pmetric.SummaryDataPoint ) {
1257
- datapoint .Attributes ().PutEmpty ("bytes" ). SetEmptyBytesVal ( ).FromRaw ([]byte {2 , 3 , 4 })
1257
+ datapoint .Attributes ().PutEmptyBytes ("bytes" ).FromRaw ([]byte {2 , 3 , 4 })
1258
1258
},
1259
1259
},
1260
1260
{
@@ -1383,7 +1383,7 @@ func createAttributeTelemetry(attributes pcommon.Map) {
1383
1383
attributes .PutBool ("bool" , true )
1384
1384
attributes .PutInt ("int" , 10 )
1385
1385
attributes .PutDouble ("double" , 1.2 )
1386
- attributes .PutEmpty ("bytes" ). SetEmptyBytesVal ( ).FromRaw ([]byte {1 , 3 , 2 })
1386
+ attributes .PutEmptyBytes ("bytes" ).FromRaw ([]byte {1 , 3 , 2 })
1387
1387
1388
1388
arrStr := attributes .PutEmptySlice ("arr_str" )
1389
1389
arrStr .AppendEmpty ().SetStringVal ("one" )
0 commit comments