open-telemetry / opentelemetry-collector
Showing 1 of 1 files from the diff.

@@ -590,28 +590,28 @@
Loading
590 590
	return fmt.Sprintf("<Unknown OpenTelemetry value type %q>", v.Type())
591 591
}
592 592
593 -
func newAttributeKeyValueString(k string, v string) otlpcommon.KeyValue {
593 +
func newKeyValueString(k string, v string) otlpcommon.KeyValue {
594 594
	orig := otlpcommon.KeyValue{Key: k}
595 595
	akv := newValue(&orig.Value)
596 596
	akv.SetStr(v)
597 597
	return orig
598 598
}
599 599
600 -
func newAttributeKeyValueInt(k string, v int64) otlpcommon.KeyValue {
600 +
func newKeyValueInt(k string, v int64) otlpcommon.KeyValue {
601 601
	orig := otlpcommon.KeyValue{Key: k}
602 602
	akv := newValue(&orig.Value)
603 603
	akv.SetInt(v)
604 604
	return orig
605 605
}
606 606
607 -
func newAttributeKeyValueDouble(k string, v float64) otlpcommon.KeyValue {
607 +
func newKeyValueDouble(k string, v float64) otlpcommon.KeyValue {
608 608
	orig := otlpcommon.KeyValue{Key: k}
609 609
	akv := newValue(&orig.Value)
610 610
	akv.SetDouble(v)
611 611
	return orig
612 612
}
613 613
614 -
func newAttributeKeyValueBool(k string, v bool) otlpcommon.KeyValue {
614 +
func newKeyValueBool(k string, v bool) otlpcommon.KeyValue {
615 615
	orig := otlpcommon.KeyValue{Key: k}
616 616
	akv := newValue(&orig.Value)
617 617
	akv.SetBool(v)
@@ -719,7 +719,7 @@
Loading
719 719
	if av, existing := m.Get(k); existing {
720 720
		av.SetStr(v)
721 721
	} else {
722 -
		*m.getOrig() = append(*m.getOrig(), newAttributeKeyValueString(k, v))
722 +
		*m.getOrig() = append(*m.getOrig(), newKeyValueString(k, v))
723 723
	}
724 724
}
725 725
@@ -730,7 +730,7 @@
Loading
730 730
	if av, existing := m.Get(k); existing {
731 731
		av.SetInt(v)
732 732
	} else {
733 -
		*m.getOrig() = append(*m.getOrig(), newAttributeKeyValueInt(k, v))
733 +
		*m.getOrig() = append(*m.getOrig(), newKeyValueInt(k, v))
734 734
	}
735 735
}
736 736
@@ -741,7 +741,7 @@
Loading
741 741
	if av, existing := m.Get(k); existing {
742 742
		av.SetDouble(v)
743 743
	} else {
744 -
		*m.getOrig() = append(*m.getOrig(), newAttributeKeyValueDouble(k, v))
744 +
		*m.getOrig() = append(*m.getOrig(), newKeyValueDouble(k, v))
745 745
	}
746 746
}
747 747
@@ -752,7 +752,7 @@
Loading
752 752
	if av, existing := m.Get(k); existing {
753 753
		av.SetBool(v)
754 754
	} else {
755 -
		*m.getOrig() = append(*m.getOrig(), newAttributeKeyValueBool(k, v))
755 +
		*m.getOrig() = append(*m.getOrig(), newKeyValueBool(k, v))
756 756
	}
757 757
}
758 758
Files Coverage
cmd 55.60%
component 95.51%
config 93.46%
confmap 96.14%
consumer 100.00%
exporter 90.38%
extension 84.17%
featuregate 100.00%
internal 88.38%
obsreport 97.26%
pdata 94.82%
processor 94.01%
receiver 84.43%
service 85.71%
client/client.go 100.00%
Project Totals (218 files) 91.77%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading