@@ -196,7 +196,8 @@ func TestComponentInstrumentation(t *testing.T) {
196
196
attribute .String ("otelcol.component.id" , "examplereceiver/foo" ),
197
197
attribute .String ("otelcol.signal" , "traces" ),
198
198
): simpleMetricMap {
199
- "otelcol.receiver.produced.items" : simpleMetric {
199
+ // "otelcol.receiver.produced.items": simpleMetric{
200
+ "otelcol_receiver_produced_items" : simpleMetric {
200
201
attribute .NewSet (
201
202
attribute .String ("outcome" , "success" ),
202
203
): 5 ,
@@ -208,12 +209,14 @@ func TestComponentInstrumentation(t *testing.T) {
208
209
attribute .String ("otelcol.pipeline.id" , "traces/in" ),
209
210
attribute .String ("otelcol.signal" , "traces" ),
210
211
): simpleMetricMap {
211
- "otelcol.processor.consumed.items" : simpleMetric {
212
+ // "otelcol.processor.consumed.items": simpleMetric{
213
+ "otelcol_processor_consumed_items" : simpleMetric {
212
214
attribute .NewSet (
213
215
attribute .String ("outcome" , "success" ),
214
216
): 5 ,
215
217
},
216
- "otelcol.processor.produced.items" : simpleMetric {
218
+ // "otelcol.processor.produced.items": simpleMetric{
219
+ "otelcol_processor_produced_items" : simpleMetric {
217
220
attribute .NewSet (
218
221
attribute .String ("outcome" , "success" ),
219
222
): 5 ,
@@ -225,12 +228,14 @@ func TestComponentInstrumentation(t *testing.T) {
225
228
attribute .String ("otelcol.signal" , "traces" ),
226
229
attribute .String ("otelcol.signal.output" , "traces" ),
227
230
): simpleMetricMap {
228
- "otelcol.connector.consumed.items" : simpleMetric {
231
+ // "otelcol.connector.consumed.items": simpleMetric{
232
+ "otelcol_connector_consumed_items" : simpleMetric {
229
233
attribute .NewSet (
230
234
attribute .String ("outcome" , "success" ),
231
235
): 5 ,
232
236
},
233
- "otelcol.connector.produced.items" : simpleMetric {
237
+ // "otelcol.connector.produced.items": simpleMetric{
238
+ "otelcol_connector_produced_items" : simpleMetric {
234
239
attribute .NewSet (
235
240
attribute .String ("outcome" , "success" ),
236
241
attribute .String ("otelcol.pipeline.id" , "traces/right" ),
@@ -246,7 +251,8 @@ func TestComponentInstrumentation(t *testing.T) {
246
251
attribute .String ("otelcol.component.id" , "exampleexporter/right" ),
247
252
attribute .String ("otelcol.signal" , "traces" ),
248
253
): simpleMetricMap {
249
- "otelcol.exporter.consumed.items" : simpleMetric {
254
+ // "otelcol.exporter.consumed.items": simpleMetric{
255
+ "otelcol_exporter_consumed_items" : simpleMetric {
250
256
attribute .NewSet (
251
257
attribute .String ("outcome" , "success" ),
252
258
): 3 ,
@@ -257,7 +263,8 @@ func TestComponentInstrumentation(t *testing.T) {
257
263
attribute .String ("otelcol.component.id" , "exampleexporter/left" ),
258
264
attribute .String ("otelcol.signal" , "traces" ),
259
265
): simpleMetricMap {
260
- "otelcol.exporter.consumed.items" : simpleMetric {
266
+ // "otelcol.exporter.consumed.items": simpleMetric{
267
+ "otelcol_exporter_consumed_items" : simpleMetric {
261
268
attribute .NewSet (
262
269
attribute .String ("outcome" , "success" ),
263
270
): 2 ,
@@ -270,7 +277,8 @@ func TestComponentInstrumentation(t *testing.T) {
270
277
attribute .String ("otelcol.component.id" , "examplereceiver/foo" ),
271
278
attribute .String ("otelcol.signal" , "metrics" ),
272
279
): simpleMetricMap {
273
- "otelcol.receiver.produced.items" : simpleMetric {
280
+ // "otelcol.receiver.produced.items": simpleMetric{
281
+ "otelcol_receiver_produced_items" : simpleMetric {
274
282
attribute .NewSet (
275
283
attribute .String ("outcome" , "success" ),
276
284
): 18 , // GenerateMetrics(9) produces 18 data points
@@ -282,12 +290,13 @@ func TestComponentInstrumentation(t *testing.T) {
282
290
attribute .String ("otelcol.pipeline.id" , "metrics/in" ),
283
291
attribute .String ("otelcol.signal" , "metrics" ),
284
292
): simpleMetricMap {
285
- "otelcol.processor.consumed.items" : simpleMetric {
293
+ // "otelcol.processor.consumed.items": simpleMetric{
294
+ "otelcol_processor_consumed_items" : simpleMetric {
286
295
attribute .NewSet (
287
296
attribute .String ("outcome" , "success" ),
288
297
): 18 , // GenerateMetrics(9) produces 18 data points
289
298
},
290
- "otelcol.processor.produced.items " : simpleMetric {
299
+ "otelcol_processor_produced_items " : simpleMetric {
291
300
attribute .NewSet (
292
301
attribute .String ("outcome" , "success" ),
293
302
): 18 , // GenerateMetrics(9) produces 18 data points
@@ -299,12 +308,14 @@ func TestComponentInstrumentation(t *testing.T) {
299
308
attribute .String ("otelcol.signal" , "metrics" ),
300
309
attribute .String ("otelcol.signal.output" , "metrics" ),
301
310
): simpleMetricMap {
302
- "otelcol.connector.consumed.items" : simpleMetric {
311
+ // "otelcol.connector.consumed.items": simpleMetric{
312
+ "otelcol_connector_consumed_items" : simpleMetric {
303
313
attribute .NewSet (
304
314
attribute .String ("outcome" , "success" ),
305
315
): 18 , // GenerateMetrics(9) produces 18 data points
306
316
},
307
- "otelcol.connector.produced.items" : simpleMetric {
317
+ // "otelcol.connector.produced.items": simpleMetric{
318
+ "otelcol_connector_produced_items" : simpleMetric {
308
319
attribute .NewSet (
309
320
attribute .String ("outcome" , "success" ),
310
321
attribute .String ("otelcol.pipeline.id" , "metrics/right" ),
@@ -320,7 +331,8 @@ func TestComponentInstrumentation(t *testing.T) {
320
331
attribute .String ("otelcol.component.id" , "exampleexporter/right" ),
321
332
attribute .String ("otelcol.signal" , "metrics" ),
322
333
): simpleMetricMap {
323
- "otelcol.exporter.consumed.items" : simpleMetric {
334
+ // "otelcol.exporter.consumed.items": simpleMetric{
335
+ "otelcol_exporter_consumed_items" : simpleMetric {
324
336
attribute .NewSet (
325
337
attribute .String ("outcome" , "success" ),
326
338
): 10 , // GenerateMetrics(5) produces 10 data points
@@ -331,7 +343,8 @@ func TestComponentInstrumentation(t *testing.T) {
331
343
attribute .String ("otelcol.component.id" , "exampleexporter/left" ),
332
344
attribute .String ("otelcol.signal" , "metrics" ),
333
345
): simpleMetricMap {
334
- "otelcol.exporter.consumed.items" : simpleMetric {
346
+ // "otelcol.exporter.consumed.items": simpleMetric{
347
+ "otelcol_exporter_consumed_items" : simpleMetric {
335
348
attribute .NewSet (
336
349
attribute .String ("outcome" , "success" ),
337
350
): 8 , // GenerateMetrics(4) produces 8 data points
@@ -344,7 +357,8 @@ func TestComponentInstrumentation(t *testing.T) {
344
357
attribute .String ("otelcol.component.id" , "examplereceiver/foo" ),
345
358
attribute .String ("otelcol.signal" , "logs" ),
346
359
): simpleMetricMap {
347
- "otelcol.receiver.produced.items" : simpleMetric {
360
+ // "otelcol.receiver.produced.items": simpleMetric{
361
+ "otelcol_receiver_produced_items" : simpleMetric {
348
362
attribute .NewSet (
349
363
attribute .String ("outcome" , "success" ),
350
364
): 13 ,
@@ -356,12 +370,13 @@ func TestComponentInstrumentation(t *testing.T) {
356
370
attribute .String ("otelcol.pipeline.id" , "logs/in" ),
357
371
attribute .String ("otelcol.signal" , "logs" ),
358
372
): simpleMetricMap {
359
- "otelcol.processor.consumed.items" : simpleMetric {
373
+ // "otelcol.processor.consumed.items": simpleMetric{
374
+ "otelcol_processor_consumed_items" : simpleMetric {
360
375
attribute .NewSet (
361
376
attribute .String ("outcome" , "success" ),
362
377
): 13 ,
363
378
},
364
- "otelcol.processor.produced.items " : simpleMetric {
379
+ "otelcol_processor_produced_items " : simpleMetric {
365
380
attribute .NewSet (
366
381
attribute .String ("outcome" , "success" ),
367
382
): 13 ,
@@ -373,12 +388,14 @@ func TestComponentInstrumentation(t *testing.T) {
373
388
attribute .String ("otelcol.signal" , "logs" ),
374
389
attribute .String ("otelcol.signal.output" , "logs" ),
375
390
): simpleMetricMap {
376
- "otelcol.connector.consumed.items" : simpleMetric {
391
+ // "otelcol.connector.consumed.items": simpleMetric{
392
+ "otelcol_connector_consumed_items" : simpleMetric {
377
393
attribute .NewSet (
378
394
attribute .String ("outcome" , "success" ),
379
395
): 13 ,
380
396
},
381
- "otelcol.connector.produced.items" : simpleMetric {
397
+ // "otelcol.connector.produced.items": simpleMetric{
398
+ "otelcol_connector_produced_items" : simpleMetric {
382
399
attribute .NewSet (
383
400
attribute .String ("outcome" , "success" ),
384
401
attribute .String ("otelcol.pipeline.id" , "logs/right" ),
@@ -394,7 +411,8 @@ func TestComponentInstrumentation(t *testing.T) {
394
411
attribute .String ("otelcol.component.id" , "exampleexporter/right" ),
395
412
attribute .String ("otelcol.signal" , "logs" ),
396
413
): simpleMetricMap {
397
- "otelcol.exporter.consumed.items" : simpleMetric {
414
+ // "otelcol.exporter.consumed.items": simpleMetric{
415
+ "otelcol_exporter_consumed_items" : simpleMetric {
398
416
attribute .NewSet (
399
417
attribute .String ("outcome" , "success" ),
400
418
): 7 ,
@@ -405,7 +423,8 @@ func TestComponentInstrumentation(t *testing.T) {
405
423
attribute .String ("otelcol.component.id" , "exampleexporter/left" ),
406
424
attribute .String ("otelcol.signal" , "logs" ),
407
425
): simpleMetricMap {
408
- "otelcol.exporter.consumed.items" : simpleMetric {
426
+ // "otelcol.exporter.consumed.items": simpleMetric{
427
+ "otelcol_exporter_consumed_items" : simpleMetric {
409
428
attribute .NewSet (
410
429
attribute .String ("outcome" , "success" ),
411
430
): 6 ,
@@ -418,7 +437,8 @@ func TestComponentInstrumentation(t *testing.T) {
418
437
attribute .String ("otelcol.component.id" , "examplereceiver/foo" ),
419
438
attribute .String ("otelcol.signal" , "profiles" ),
420
439
): simpleMetricMap {
421
- "otelcol.receiver.produced.items" : simpleMetric {
440
+ // "otelcol.receiver.produced.items": simpleMetric{
441
+ "otelcol_receiver_produced_items" : simpleMetric {
422
442
attribute .NewSet (
423
443
attribute .String ("outcome" , "success" ),
424
444
): 17 ,
@@ -430,12 +450,14 @@ func TestComponentInstrumentation(t *testing.T) {
430
450
attribute .String ("otelcol.pipeline.id" , "profiles/in" ),
431
451
attribute .String ("otelcol.signal" , "profiles" ),
432
452
): simpleMetricMap {
433
- "otelcol.processor.consumed.items" : simpleMetric {
453
+ // "otelcol.processor.consumed.items": simpleMetric{
454
+ "otelcol_processor_consumed_items" : simpleMetric {
434
455
attribute .NewSet (
435
456
attribute .String ("outcome" , "success" ),
436
457
): 17 ,
437
458
},
438
- "otelcol.processor.produced.items" : simpleMetric {
459
+ // "otelcol.processor.produced.items": simpleMetric{
460
+ "otelcol_processor_produced_items" : simpleMetric {
439
461
attribute .NewSet (
440
462
attribute .String ("outcome" , "success" ),
441
463
): 17 ,
@@ -447,12 +469,14 @@ func TestComponentInstrumentation(t *testing.T) {
447
469
attribute .String ("otelcol.signal" , "profiles" ),
448
470
attribute .String ("otelcol.signal.output" , "profiles" ),
449
471
): simpleMetricMap {
450
- "otelcol.connector.consumed.items" : simpleMetric {
472
+ // "otelcol.connector.consumed.items": simpleMetric{
473
+ "otelcol_connector_consumed_items" : simpleMetric {
451
474
attribute .NewSet (
452
475
attribute .String ("outcome" , "success" ),
453
476
): 17 ,
454
477
},
455
- "otelcol.connector.produced.items" : simpleMetric {
478
+ // "otelcol.connector.produced.items": simpleMetric{
479
+ "otelcol_connector_produced_items" : simpleMetric {
456
480
attribute .NewSet (
457
481
attribute .String ("outcome" , "success" ),
458
482
attribute .String ("otelcol.pipeline.id" , "profiles/right" ),
@@ -468,7 +492,8 @@ func TestComponentInstrumentation(t *testing.T) {
468
492
attribute .String ("otelcol.component.id" , "exampleexporter/right" ),
469
493
attribute .String ("otelcol.signal" , "profiles" ),
470
494
): simpleMetricMap {
471
- "otelcol.exporter.consumed.items" : simpleMetric {
495
+ // "otelcol.exporter.consumed.items": simpleMetric{
496
+ "otelcol_exporter_consumed_items" : simpleMetric {
472
497
attribute .NewSet (
473
498
attribute .String ("outcome" , "success" ),
474
499
): 9 ,
@@ -479,7 +504,8 @@ func TestComponentInstrumentation(t *testing.T) {
479
504
attribute .String ("otelcol.component.id" , "exampleexporter/left" ),
480
505
attribute .String ("otelcol.signal" , "profiles" ),
481
506
): simpleMetricMap {
482
- "otelcol.exporter.consumed.items" : simpleMetric {
507
+ // "otelcol.exporter.consumed.items": simpleMetric{
508
+ "otelcol_exporter_consumed_items" : simpleMetric {
483
509
attribute .NewSet (
484
510
attribute .String ("outcome" , "success" ),
485
511
): 8 ,
0 commit comments