open-telemetry / opentelemetry-collector

Compare 7740c7b ... +0 ... 87265bd

Coverage Reach
pdata/pmetric/generated_metrics.go pdata/pmetric/internal/pmetricjson/json.go pdata/pmetric/metrics.go pdata/pmetric/pmetricotlp/metrics.go pdata/pmetric/pb.go pdata/pmetric/json.go pdata/pmetric/metric_data_point_flags.go pdata/internal/generated_wrapper_metrics.go pdata/internal/json/attribute.go pdata/internal/json/number.go pdata/internal/json/scope.go pdata/internal/json/enum.go pdata/internal/json/resource.go pdata/internal/generated_wrapper_traces.go pdata/internal/generated_wrapper_logs.go pdata/internal/data/spanid.go pdata/internal/data/traceid.go pdata/internal/data/bytesid.go pdata/internal/wrapper_common.go pdata/internal/generated_wrapper_common.go pdata/internal/wrapper_metrics.go pdata/internal/generated_wrapper_primitive_slice.go pdata/internal/wrapper_traces.go pdata/internal/wrapper_logs.go pdata/internal/generated_wrapper_resource.go pdata/internal/otlp/logs.go pdata/internal/otlp/traces.go pdata/internal/otlp/metrics.go pdata/ptrace/generated_traces.go pdata/ptrace/internal/ptracejson/json.go pdata/ptrace/ptraceotlp/traces.go pdata/ptrace/traces.go pdata/ptrace/pb.go pdata/ptrace/json.go pdata/pcommon/common.go pdata/pcommon/generated_primitive_slice.go pdata/pcommon/generated_common.go pdata/pcommon/generated_resource.go pdata/pcommon/trace_state.go pdata/pcommon/traceid.go pdata/pcommon/spanid.go pdata/pcommon/timestamp.go pdata/plog/generated_logs.go pdata/plog/internal/plogjson/json.go pdata/plog/plogotlp/logs.go pdata/plog/logs.go pdata/plog/pb.go pdata/plog/json.go pdata/plog/log_record_flags.go exporter/exporterhelper/internal/persistent_storage.go exporter/exporterhelper/internal/persistent_storage_batch.go exporter/exporterhelper/internal/bounded_memory_queue.go exporter/exporterhelper/internal/persistent_queue.go exporter/exporterhelper/queued_retry.go exporter/exporterhelper/common.go exporter/exporterhelper/traces.go exporter/exporterhelper/logs.go exporter/exporterhelper/metrics.go exporter/exporterhelper/obsreport.go exporter/loggingexporter/internal/otlptext/databuffer.go exporter/loggingexporter/internal/otlptext/traces.go exporter/loggingexporter/internal/otlptext/logs.go exporter/loggingexporter/internal/otlptext/metrics.go exporter/loggingexporter/factory.go exporter/loggingexporter/logging_exporter.go exporter/loggingexporter/known_sync_error.go exporter/loggingexporter/config.go exporter/otlphttpexporter/otlp.go exporter/otlphttpexporter/factory.go exporter/otlphttpexporter/config.go exporter/otlpexporter/otlp.go exporter/otlpexporter/factory.go exporter/otlpexporter/config.go service/internal/pipelines/pipelines.go service/internal/pipelines/capabilities.go service/internal/configunmarshaler/defaultunmarshaler.go service/internal/telemetry/process_telemetry.go service/internal/fanoutconsumer/logs.go service/internal/fanoutconsumer/traces.go service/internal/fanoutconsumer/metrics.go service/internal/telemetrylogs/logger.go service/internal/zpages/templates.go service/internal/components/host_wrapper.go service/internal/components/components.go service/internal/otel_trace_sampler.go service/internal/runtimeinfo/info.go service/telemetry.go service/collector.go service/service.go service/extensions/extensions.go service/zpages.go service/config_provider.go service/command.go service/flags.go service/host.go service/servicetest/configprovider.go config/internal/configsource/manager.go config/confighttp/confighttp.go config/confighttp/compression.go config/confighttp/clientinfohandler.go config/configgrpc/configgrpc.go config/configgrpc/wrappedstream.go config/configtls/configtls.go config/configauth/default_clientauthenticator.go config/configauth/default_serverauthenticator.go config/configauth/mock_clientauth.go config/configauth/configauth.go config/configtest/configtest.go config/moved_config.go config/identifiable.go config/configtelemetry/configtelemetry.go config/processor.go config/extension.go config/exporter.go config/receiver.go config/configcompression/compressionType.go config/confignet/confignet.go config/common.go processor/batchprocessor/batch_processor.go processor/batchprocessor/splitmetrics.go processor/batchprocessor/splittraces.go processor/batchprocessor/splitlogs.go processor/batchprocessor/metrics.go processor/batchprocessor/factory.go processor/batchprocessor/config.go processor/memorylimiterprocessor/memorylimiter.go processor/memorylimiterprocessor/factory.go processor/memorylimiterprocessor/config.go processor/processorhelper/logs.go processor/processorhelper/traces.go processor/processorhelper/metrics.go processor/processorhelper/processor.go receiver/otlpreceiver/otlp.go receiver/otlpreceiver/otlphttp.go receiver/otlpreceiver/internal/trace/otlp.go receiver/otlpreceiver/internal/metrics/otlp.go receiver/otlpreceiver/internal/logs/otlp.go receiver/otlpreceiver/factory.go receiver/otlpreceiver/encoder.go receiver/otlpreceiver/config.go receiver/scraperhelper/scrapercontroller.go receiver/scraperhelper/scraper.go receiver/scrapererror/scrapeerror.go receiver/scrapererror/partialscrapeerror.go internal/cgroups/cgroups.go internal/cgroups/mountpoint.go internal/cgroups/subsys.go internal/cgroups/cgroup.go internal/cgroups/errors.go internal/testcomponents/example_receiver.go internal/testcomponents/example_exporter.go internal/testcomponents/example_processor.go internal/testcomponents/example_factories.go internal/obsreportconfig/obsreportconfig.go internal/testutil/testutil.go internal/iruntime/total_memory_linux.go internal/iruntime/mem_info.go internal/sharedcomponent/sharedcomponent.go confmap/resolver.go confmap/confmap.go confmap/provider/httpprovider/provider.go confmap/provider/fileprovider/provider.go confmap/provider/envprovider/provider.go confmap/provider/yamlprovider/provider.go confmap/provider/internal/provider.go confmap/converter/expandconverter/expand.go confmap/converter/overwritepropertiesconverter/properties.go confmap/provider.go confmap/confmaptest/configtest.go obsreport/obsreporttest/obsreporttest.go obsreport/obsreport_processor.go obsreport/obsreport_receiver.go obsreport/obsreport_exporter.go obsreport/obsreport_scraper.go obsreport/obsreport.go component/componenttest/shutdown_verifier.go component/componenttest/nop_processor.go component/componenttest/nop_receiver.go component/componenttest/nop_exporter.go component/componenttest/nop_factories.go component/componenttest/nop_extension.go component/componenttest/nop_host.go component/componenttest/nop_telemetry.go component/processor.go component/exporter.go component/receiver.go component/component.go component/factories.go component/extension.go component/build_info.go cmd/builder/internal/builder/main.go cmd/builder/internal/builder/config.go cmd/builder/internal/builder/templates.go cmd/builder/internal/config/default.go cmd/otelcorecol/components.go cmd/otelcorecol/main.go cmd/otelcorecol/main_others.go consumer/consumertest/sink.go consumer/consumertest/err.go consumer/consumertest/nop.go consumer/consumertest/base_consumer.go consumer/consumererror/signalerrors.go consumer/consumererror/permanent.go consumer/consumer.go consumer/logs.go consumer/metrics.go consumer/traces.go extension/zpagesextension/zpagesextension.go extension/zpagesextension/factory.go extension/zpagesextension/config.go extension/ballastextension/memory_ballast.go extension/ballastextension/factory.go extension/ballastextension/config.go extension/experimental/storage/storage.go extension/experimental/storage/nop_client.go featuregate/gates.go featuregate/flags.go client/client.go

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

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

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
consumererror 100.00%
consumertest 100.00%
consumer.go 100.00%
logs.go 100.00%
metrics.go 100.00%
traces.go 100.00%
Folder Totals (6 files) 100.00%
Project Totals (218 files) 91.77%
Loading