ddtrace-annotation 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ad8d218a47e1b59bdab7a3f40effca27a8a6eae8ed38eaf938741426843a9078
4
+ data.tar.gz: 4172c89ff81526de7adbc4178882834f9ca3f23159759d682f9cc50cc98d2d26
5
+ SHA512:
6
+ metadata.gz: f8a6459a14947e5d9e716179ab443daf2eeb6ea2098818e17f902ade9a72786d9fe0c0cd00478496c687fdb41c148122b79e2fc74983e69a314c70ad0f327d1f
7
+ data.tar.gz: f625bbfe5460994e2a29825ff9273d9c84fbc7b70926d618003eb6aaa5352167fdbdc1d8059ecffaf61792f2d6f45cb20e36669e8795973b37d86c773cebee70
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,40 @@
1
+ Metrics/LineLength:
2
+ Max: 150
3
+
4
+ Metrics/ClassLength:
5
+ Max: 150
6
+
7
+ Metrics/BlockLength:
8
+ Exclude:
9
+ - "**/*_spec.rb"
10
+
11
+ Metrics/MethodLength:
12
+ Max: 20
13
+
14
+ Metrics/ModuleLength:
15
+ Exclude:
16
+ - "spec/**/*.rb"
17
+
18
+ Metrics/AbcSize:
19
+ Max: 20
20
+
21
+ Style/FrozenStringLiteralComment:
22
+ Exclude:
23
+ - "spec/**/*.rb"
24
+
25
+ Style/StringLiterals:
26
+ EnforcedStyle: double_quotes
27
+
28
+ AllCops:
29
+ Exclude:
30
+ - spec/spec_helper.rb
31
+ - "bin/**/*"
32
+ - "ddtrace-annotation.gemspec"
33
+
34
+ Lint/AmbiguousBlockAssociation:
35
+ Exclude:
36
+ - "spec/**/*"
37
+
38
+ EvalWithLocation:
39
+ Exclude:
40
+ - "spec/**/*.rb"
@@ -0,0 +1,22 @@
1
+ language: ruby
2
+ cache: bundler
3
+ rvm:
4
+ - 2.4.6
5
+ - 2.5.5
6
+ - 2.6.3
7
+ - 2.7.0-preview1
8
+
9
+ before_install:
10
+ - gem update --system
11
+ - gem install bundler
12
+
13
+ before_script:
14
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
15
+ - chmod +x ./cc-test-reporter
16
+ - ./cc-test-reporter before-build
17
+
18
+ script:
19
+ - bundle exec rspec
20
+
21
+ after_script:
22
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
File without changes
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in ddtrace-annotation.gemspec
8
+ gemspec
@@ -0,0 +1,72 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ddtrace-annotation (1.0.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.0)
10
+ byebug (11.0.1)
11
+ coderay (1.1.2)
12
+ diff-lcs (1.3)
13
+ docile (1.3.1)
14
+ jaro_winkler (1.5.2)
15
+ json (2.2.0)
16
+ method_source (0.9.2)
17
+ parallel (1.17.0)
18
+ parser (2.6.3.0)
19
+ ast (~> 2.4.0)
20
+ pry (0.12.2)
21
+ coderay (~> 1.1.0)
22
+ method_source (~> 0.9.0)
23
+ pry-byebug (3.7.0)
24
+ byebug (~> 11.0)
25
+ pry (~> 0.10)
26
+ rainbow (3.0.0)
27
+ rake (12.3.2)
28
+ rspec (3.8.0)
29
+ rspec-core (~> 3.8.0)
30
+ rspec-expectations (~> 3.8.0)
31
+ rspec-mocks (~> 3.8.0)
32
+ rspec-core (3.8.0)
33
+ rspec-support (~> 3.8.0)
34
+ rspec-expectations (3.8.3)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.8.0)
37
+ rspec-mocks (3.8.0)
38
+ diff-lcs (>= 1.2.0, < 2.0)
39
+ rspec-support (~> 3.8.0)
40
+ rspec-support (3.8.0)
41
+ rubocop (0.71.0)
42
+ jaro_winkler (~> 1.5.1)
43
+ parallel (~> 1.10)
44
+ parser (>= 2.6)
45
+ rainbow (>= 2.2.2, < 4.0)
46
+ ruby-progressbar (~> 1.7)
47
+ unicode-display_width (>= 1.4.0, < 1.7)
48
+ ruby-progressbar (1.10.1)
49
+ simplecov (0.16.1)
50
+ docile (~> 1.1)
51
+ json (>= 1.8, < 3)
52
+ simplecov-html (~> 0.10.0)
53
+ simplecov-cobertura (1.3.1)
54
+ simplecov (~> 0.8)
55
+ simplecov-html (0.10.2)
56
+ unicode-display_width (1.6.0)
57
+
58
+ PLATFORMS
59
+ ruby
60
+
61
+ DEPENDENCIES
62
+ bundler (~> 2.0)
63
+ ddtrace-annotation!
64
+ pry (~> 0.12.2)
65
+ pry-byebug (~> 3.6)
66
+ rake (~> 12.3)
67
+ rspec (~> 3.0)
68
+ rubocop (~> 0.70)
69
+ simplecov-cobertura (~> 1.3)
70
+
71
+ BUNDLED WITH
72
+ 2.0.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Leandro Maduro
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,69 @@
1
+ # Datadog Annotation
2
+
3
+ [![Build Status](https://travis-ci.com/downgba/ddtrace-annotation.svg?branch=master)](https://travis-ci.com/downgba/ddtrace-annotation)
4
+ [![Maintainability](https://api.codeclimate.com/v1/badges/b48b7c15e8925e6f2c6d/maintainability)](https://codeclimate.com/github/downgba/ddtrace-annotation/maintainability)
5
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/b48b7c15e8925e6f2c6d/test_coverage)](https://codeclimate.com/github/downgba/ddtrace-annotation/test_coverage)
6
+
7
+ Datadog Annotation allows you to annotate methods to be traced by Datadog Tracing Ruby Client.
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'ddtrace-annotation'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install ddtrace-annotation
24
+
25
+ ## Usage
26
+
27
+ ```ruby
28
+ class Test
29
+ include Datadog::Annotation
30
+
31
+ __trace(
32
+ method: :method_to_be_traced,
33
+ service: "service-name"
34
+ )
35
+ def method_to_be_traced; end
36
+ end
37
+ ```
38
+ `__trace` accepts two more parameters, both of them are optionals:
39
+ - resource: action to be traced, by default its value is `class_name#method_name`, this parameter accepts a `String` or a `Proc`. So if you want to use some information that you receive by parameter you can use a proc.
40
+ Ex:
41
+ ```ruby
42
+ class Test
43
+ include Datadog::Annotation
44
+
45
+ __trace(
46
+ method: :method_to_be_traced,
47
+ service: "service-name",
48
+ resource: Proc.new { |_, type| "MyClass##{type}"}
49
+ )
50
+ def method_to_be_traced(name, type); end
51
+ ```
52
+
53
+
54
+ - metadata
55
+
56
+
57
+ ## Development
58
+
59
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
60
+
61
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
62
+
63
+ ## Contributing
64
+
65
+ Bug reports and pull requests are welcome on GitHub at https://github.com/downgba/ddtrace-annotation.
66
+
67
+ ## License
68
+
69
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "ddtrace/annotation"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path("lib", __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require "ddtrace/annotation/version"
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "ddtrace-annotation"
9
+ spec.version = Ddtrace::Annotation::VERSION
10
+ spec.authors = ["Leandro Maduro"]
11
+ spec.email = ["leandromaduro1@gmail.com"]
12
+
13
+ spec.summary = "Annotate method to be traced by Datadog Tracing Ruby Client"
14
+ spec.description = "ddtrace-annotation allows you to annotate methods to be traced by Datadog Tracing Ruby Client."
15
+ spec.homepage = "https://github.com/downgba/ddtrace-annotation"
16
+ spec.license = "MIT"
17
+
18
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
20
+ if spec.respond_to?(:metadata)
21
+ spec.metadata["homepage_uri"] = spec.homepage
22
+ spec.metadata["source_code_uri"] = "https://github.com/downgba/ddtrace-annotation"
23
+ spec.metadata["changelog_uri"] = "https://github.com/downgba/ddtrace-annotation/blob/master/CHANGELOG.md"
24
+ else
25
+ raise "RubyGems 2.0 or newer is required to protect against " \
26
+ "public gem pushes."
27
+ end
28
+
29
+ # Specify which files should be added to the gem when it is released.
30
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
31
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
32
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
33
+ end
34
+ spec.bindir = "exe"
35
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
36
+ spec.require_paths = ["lib"]
37
+
38
+ spec.add_development_dependency "bundler", "~> 2.0"
39
+ spec.add_development_dependency "pry", "~> 0.12.2"
40
+ spec.add_development_dependency "pry-byebug", "~> 3.6"
41
+ spec.add_development_dependency "rake", "~> 12.3"
42
+ spec.add_development_dependency "rspec", "~> 3.0"
43
+ spec.add_development_dependency "rubocop", "~> 0.70"
44
+ spec.add_development_dependency "simplecov-cobertura", "~> 1.3"
45
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ddtrace/annotation/version"
4
+ require "ddtrace/annotation/errors/base"
5
+ require "ddtrace/annotation/decorator"
6
+
7
+ module Datadog
8
+ # Datadog::Annotation allows you to annotate methods which you want to trace.
9
+ # Usage:
10
+ # class Test
11
+ # include Datadog::Annotation
12
+ #
13
+ # __trace method: :test, service: "web"
14
+ # def test; end
15
+ module Annotation
16
+ def self.included(base)
17
+ base.class_eval do
18
+ extend Decorator
19
+ @traced_methods = {}
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ddtrace/annotation/errors/invalid_proc"
4
+ require "ddtrace/annotation/tracer"
5
+
6
+ module Datadog
7
+ module Annotation
8
+ # Adds tracer to annotated methods
9
+ module Decorator
10
+ # Adds method to list of traced methods
11
+ # @param method [Symbol] name of the method to be traced
12
+ # @param service [String] the service name for span
13
+ # @param resource [String || Proc] the resource in which the current span refers
14
+ # @param metadata_proc [Proc] Block which sets tags into current trace.
15
+ # It receives original args, result of the traced method and span
16
+ # @see Datadog::Annotation::Tracer.trace
17
+ def __trace(method:, service:, resource: "#{self}##{method}", metadata_proc: nil)
18
+ return unless datadog_enabled?
19
+
20
+ validate_metadata_proc!(metadata_proc)
21
+
22
+ @traced_methods[method.to_sym] = {
23
+ service: service,
24
+ resource: resource,
25
+ metadata_proc: metadata_proc,
26
+ defined?: false
27
+ }
28
+ end
29
+
30
+ def method_added(name)
31
+ super
32
+
33
+ return if !@traced_methods.key?(name) || @traced_methods.dig(name, :defined?)
34
+
35
+ @traced_methods[name][:defined?] = true
36
+
37
+ method = instance_method(name)
38
+ trace_info = @traced_methods[name]
39
+
40
+ define_method(name) do |*args, &block|
41
+ Annotation::Tracer.trace(
42
+ method: method.bind(self),
43
+ trace_info: trace_info,
44
+ args: args,
45
+ &block
46
+ )
47
+ end
48
+ end
49
+
50
+ private
51
+
52
+ def datadog_enabled?
53
+ Datadog.respond_to?(:tracer) && Datadog.tracer.enabled
54
+ end
55
+
56
+ def validate_metadata_proc!(metadata_proc)
57
+ return if metadata_proc.nil?
58
+
59
+ raise Errors::InvalidProc, "MetadataProc must be a Proc" unless metadata_proc.is_a?(Proc)
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Datadog
4
+ module Annotation
5
+ module Errors
6
+ class Base < StandardError; end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Datadog
4
+ module Annotation
5
+ module Errors
6
+ class InvalidProc < Base; end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Datadog
4
+ module Annotation
5
+ module Errors
6
+ class InvalidResource < Base; end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ddtrace/annotation/errors/invalid_resource"
4
+
5
+ module Datadog
6
+ module Annotation
7
+ # Datadog::Annotation::Tracer is responsible for setting up the trace for the annotated method
8
+ class Tracer
9
+ # @param method [Method]
10
+ # @param trace_info [Hash]
11
+ # Ex: trace_info: {
12
+ # service: "web",
13
+ # resource: "Users#create"
14
+ # }
15
+ #
16
+ # @option +service+: [String] the service name for span
17
+ # @option +resource+: [String || Proc] the resource in which the current span refers
18
+ #
19
+ # If by any reason you need to use some information that your method receives
20
+ # as a parameter, you can set a Proc as a resource.
21
+ #
22
+ # Ex:
23
+ # __trace(
24
+ # method: :test,
25
+ # service: "web"
26
+ # resource: Proc.new { |_, type| "test##{type}"}
27
+ # )
28
+ # def test(name, type); end
29
+ # @option +metadata_proc+: [Proc] Block which sets tags into current trace.
30
+ # It receives original args, result of the traced method and span
31
+ #
32
+ # Ex:
33
+ # __trace(
34
+ # method: :test,
35
+ # service: "web"
36
+ # metadata_proc: Proc.new do |args, result, span|
37
+ # span.set_tag("name", args[:name])
38
+ # span.set_tag("type", args[:type])
39
+ # span.set_tag("result", result)
40
+ # end
41
+ # )
42
+ # def test(name, type); end
43
+ # @param args [Array]
44
+ def self.trace(method:, trace_info:, args:, &block)
45
+ resource = resolve_resource!(trace_info[:resource], args)
46
+ metadata_proc = trace_info[:metadata_proc]
47
+
48
+ Datadog.tracer.trace(resource, service: trace_info[:service]) do |span|
49
+ result = method.call(*args, &block)
50
+
51
+ resolve_metadata!(
52
+ metadata_proc: metadata_proc,
53
+ method: method,
54
+ args: args,
55
+ result: result,
56
+ span: span
57
+ )
58
+
59
+ result
60
+ end
61
+ end
62
+
63
+ def self.resolve_resource!(resource, args)
64
+ raise Errors::InvalidResource, "Can't be empty" if resource.to_s.empty?
65
+ return resource unless resource.is_a?(Proc)
66
+
67
+ resource.call(*args)
68
+ end
69
+
70
+ def self.resolve_metadata!(metadata_proc:, method:, args:, result:, span:)
71
+ return if metadata_proc.nil?
72
+
73
+ arguments = {}
74
+ method.parameters.each_with_index { |parameter, index| arguments[parameter[1]] = args[index] }
75
+ metadata_proc.call(arguments, result, span)
76
+ end
77
+
78
+ private_class_method :resolve_resource!, :resolve_metadata!
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ddtrace
4
+ module Annotation
5
+ VERSION = "1.0.0"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,165 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ddtrace-annotation
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Leandro Maduro
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-06-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.12.2
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.12.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry-byebug
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.6'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '12.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '12.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.70'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.70'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov-cobertura
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.3'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.3'
111
+ description: ddtrace-annotation allows you to annotate methods to be traced by Datadog
112
+ Tracing Ruby Client.
113
+ email:
114
+ - leandromaduro1@gmail.com
115
+ executables: []
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - ".gitignore"
120
+ - ".rspec"
121
+ - ".rubocop.yml"
122
+ - ".travis.yml"
123
+ - CHANGELOG.md
124
+ - Gemfile
125
+ - Gemfile.lock
126
+ - LICENSE.txt
127
+ - README.md
128
+ - Rakefile
129
+ - bin/console
130
+ - bin/setup
131
+ - ddtrace-annotation.gemspec
132
+ - lib/ddtrace/annotation.rb
133
+ - lib/ddtrace/annotation/decorator.rb
134
+ - lib/ddtrace/annotation/errors/base.rb
135
+ - lib/ddtrace/annotation/errors/invalid_proc.rb
136
+ - lib/ddtrace/annotation/errors/invalid_resource.rb
137
+ - lib/ddtrace/annotation/tracer.rb
138
+ - lib/ddtrace/annotation/version.rb
139
+ homepage: https://github.com/downgba/ddtrace-annotation
140
+ licenses:
141
+ - MIT
142
+ metadata:
143
+ homepage_uri: https://github.com/downgba/ddtrace-annotation
144
+ source_code_uri: https://github.com/downgba/ddtrace-annotation
145
+ changelog_uri: https://github.com/downgba/ddtrace-annotation/blob/master/CHANGELOG.md
146
+ post_install_message:
147
+ rdoc_options: []
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ requirements: []
161
+ rubygems_version: 3.1.0.pre1
162
+ signing_key:
163
+ specification_version: 4
164
+ summary: Annotate method to be traced by Datadog Tracing Ruby Client
165
+ test_files: []