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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a837d9537c3dccbc0d656e4bd7c7a196073c95e5686a02252a69f267b49be89b
4
- data.tar.gz: 6feed841349acebe12bbc6afc3f1f87f9b897d86867e9fc91a4a442f3930b10f
3
+ metadata.gz: 83e1f51507354acfa43c050b11374b65b2a32be4175b93c9d0a525eb1bdc4779
4
+ data.tar.gz: 536e666085bc3519781dc1de6bdecffcc1dbb85e7e39d5aecfc6ac429a24030e
5
5
  SHA512:
6
- metadata.gz: c0823f094eb916153de0aae3a29496bd9f1245648159435e6c070ef86e371b9015f399efc3f54e3cc9fe45081357c524ea9c5fbf01f216fb78f3f41b3e9853f7
7
- data.tar.gz: 7fd37d56e8ca61aac7ee18537a486a865efe4a834a77eabeb8b3dab17a002c4430cfca3a6af4b603dbbed0e598b803405cd61045b6291aaa692b5b9955adf591
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CodecovOpentelem
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codecov_opentelem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmed-Elghrbawy