Avatar for the open-telemetry user
open-telemetry
opentelemetry-collector
BlogDocsChangelog

mdatagen: add metric validation test coverage

#14467
Comparing
Syedowais312:test/mdatagen-metric-validation-v2
(
e8ac564
) with
main
(
3ac3dd7
)
CodSpeed Performance Gauge
-1%
Untouched
61
Ignored
3
Skipped
20

Benchmarks

84 total
HTTP/1.1,_shared_client_(like_load_balancer)
config/confighttp/server_test.go::BenchmarkHttpRequest
CodSpeed Performance Gauge
+4%
1.1 ms1.1 ms
BenchmarkTracesUsage
pdata/ptrace/traces_test.go
CodSpeed Performance Gauge
+2%
5.1 µs5 µs
BenchmarkBatchMetricProcessor2k
processor/batchprocessor/batch_processor_test.go
CodSpeed Performance Gauge
+2%
134.3 ms132.2 ms
sm_trace_request/raw_bytes_240/compressed_bytes_258/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
+1%
831 ns822 ns
BenchmarkLogsUsage
pdata/plog/logs_test.go
CodSpeed Performance Gauge
+1%
2.8 µs2.8 µs
BenchmarkSplittingBasedOnByteSizeManyProfilesSlightlyAboveLimit
exporter/exporterhelper/xexporterhelper/profiles_batch_test.go
CodSpeed Performance Gauge
+1%
87.8 ms87.3 ms
lg_log_request/raw_bytes_4850/compressed_bytes_217/compressor_zstd
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
+1%
11.1 µs11.1 µs
BenchmarkProfilesUsage
pdata/pprofile/profiles_test.go
CodSpeed Performance Gauge
+1%
3.6 µs3.5 µs
BenchmarkProfilesToProto
pdata/pprofile/pb_test.go
CodSpeed Performance Gauge
+1%
1.7 µs1.7 µs
BenchmarkSplittingBasedOnByteSizeManySmallProfiles
exporter/exporterhelper/xexporterhelper/profiles_batch_test.go
CodSpeed Performance Gauge
0%
4.7 s4.6 s
lg_metric_request/raw_bytes_10991/compressed_bytes_1033/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
4.2 µs4.2 µs
BenchmarkMetricsMarshalJSON
pdata/pmetric/metrics_test.go
CodSpeed Performance Gauge
0%
5.2 µs5.2 µs
BenchmarkPersistentQueue
exporter/exporterhelper/internal/queue/persistent_queue_test.go
CodSpeed Performance Gauge
0%
205.6 µs205.2 µs
BenchmarkMemoryQueueWaitForResult
exporter/exporterhelper/internal/queue/memory_queue_test.go
CodSpeed Performance Gauge
0%
67.5 µs67.4 µs
BenchmarkLogsFromProto2k
pdata/plog/pb_test.go
CodSpeed Performance Gauge
0%
131.2 µs131.2 µs
with_a_hundred_values_to_loop_through
pdata/pprofile/string_table_test.go::BenchmarkSetString
CodSpeed Performance Gauge
0%
160 ns160 ns
with_an_existing_value
pdata/pprofile/string_table_test.go::BenchmarkSetString
CodSpeed Performance Gauge
0%
60 ns60 ns
BenchmarkFromAttributeIndices
pdata/pprofile/attributes_test.go
CodSpeed Performance Gauge
0%
240 ns240 ns
sm_log_request/raw_bytes_160/compressed_bytes_178/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
741 ns741 ns
with_a_duplicate_value
pdata/pprofile/string_table_test.go::BenchmarkSetString
CodSpeed Performance Gauge
0%
60 ns60 ns
BenchmarkTraceSizeSpanCount
processor/batchprocessor/batch_processor_test.go
CodSpeed Performance Gauge
0%
60 ns60 ns
BenchmarkFromLocationIndices
pdata/pprofile/locations_test.go
CodSpeed Performance Gauge
0%
1.8 µs1.8 µs
md_log_request/raw_bytes_242/compressed_bytes_260/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
831 ns831 ns
with_a_new_value
pdata/pprofile/string_table_test.go::BenchmarkSetString
CodSpeed Performance Gauge
0%
60 ns60 ns
sm_metric_request/raw_bytes_183/compressed_bytes_155/compressor_snappy
config/configgrpc/configgrpc_benchmark_test.go::BenchmarkCompressors
CodSpeed Performance Gauge
0%
731 ns731 ns

Commits

Click on a commit to change the comparison range
Base
main
3ac3dd7
+38.05%
mdatagen: add metric validation tests
fe5fee8
7 days ago
by Syedowais312
-38.53%
added changelog
1d98455
7 days ago
by Syedowais312
+0.16%
added changelog
1a45116
7 days ago
by Syedowais312
+32.29%
chore: remove changelog entry (tests only change)
ad67f1d
6 days ago
by Syedowais312
-31.66%
refactored the metric validation tests to use subtests to reduce repetition
e34799d
6 days ago
by Syedowais312
-1.6%
modified metric_test
e8ac564
3 days ago
by Syedowais312
© 2026 CodSpeed Technology
Home Terms Privacy Docs