codecov_opentelem 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/codecov_opentelem/coverage_exporter.rb +3 -1
- data/lib/codecov_opentelem/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83e1f51507354acfa43c050b11374b65b2a32be4175b93c9d0a525eb1bdc4779
|
4
|
+
data.tar.gz: 536e666085bc3519781dc1de6bdecffcc1dbb85e7e39d5aecfc6ac429a24030e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9878e50adfe01c11cf13d17db8c9b878a9e34f157703f63cb088e0e3b769a3993a64efced82c71e38b8f2845a21a2766f6cd4aae76c3f005cba6183f667110f9
|
7
|
+
data.tar.gz: a0385f0c0681f3667f6b995af11d20380da211b15e78056f912ea674b2dcec5f502d70a302fec0e15fef6e17867ca309b9e0efce5b215ba8fa6b750a16f4b220
|
@@ -9,6 +9,7 @@ require 'coverage'
|
|
9
9
|
require 'opentelemetry/sdk'
|
10
10
|
|
11
11
|
module CoverageSpanFilter
|
12
|
+
FILE_IGNORE_NAME = 'file_ignore_regex'
|
12
13
|
REGEX_NAME = 'name_regex'
|
13
14
|
SPAN_KIND = 'span_kind'
|
14
15
|
end
|
@@ -36,7 +37,8 @@ class CodecovCoverageStorageManager
|
|
36
37
|
|
37
38
|
def pop_coverage_for_span(span)
|
38
39
|
span_id = span.span_id
|
39
|
-
@inner.delete(span_id)
|
40
|
+
cov = @inner.delete(span_id)
|
41
|
+
cov.select { |key, value| !@filters[CoverageSpanFilter::FILE_IGNORE_NAME].match(key) } unless @filters[CoverageSpanFilter::FILE_IGNORE_NAME].nil?
|
40
42
|
end
|
41
43
|
end
|
42
44
|
|