signalfx-tracing 2.0.0 → 2.1.1

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: d925fc8a741a34fc519b208d60db2ae0c1dde2843ef311528b5634d861a5c753
4
- data.tar.gz: 16f868cd5ecbc63ad43186b4c21120a1f2158a7a261198852891c7afb73caa46
3
+ metadata.gz: 2f20ce1d0998b95c507dd19b340537e51865387f1ab5022c45185746e0d03667
4
+ data.tar.gz: 0ada0dc7104f4dbaedd9194928117e7baf0aa23ae3ba66f69371bfc253582f0c
5
5
  SHA512:
6
- metadata.gz: ec9a187474da4b1623015be9a0771ef6b3f1b2accbbc97bdc243f4a56000f7238d95f99d79a268abf0ac59e56dc9f369107941c853fde6fc08c783ef847aac89
7
- data.tar.gz: 88788937e388a88227dbe98d47ac0e2991cb7014fa864d30508c3b30c7249eda7a6d3e0c9873a12c174126077ef44172b0afdb09ccc572f41568c0160f1f366b
6
+ metadata.gz: baedb458a7cd326d523f53845cfc8157201de6d34811fde58c3643e8da2cb081e0a83186ee53e7815e86db11671659d87a33ab06ef56d496e74e3e0007fcfc34
7
+ data.tar.gz: b0ad72691b7a438b008d4748a4717cfc0f1a004b8cb939a1392f2fb88aa4cb7030807a23b8132829d80200443da11096fa21afad987b330b20e40fbaf230a7b9
data/README.md CHANGED
@@ -158,7 +158,7 @@ This instrumentation creates spans for each Active Record query using the Active
158
158
  Support notifications framework. If you configure Rails instrumentation, it also configures Active Record instrumentation, so you don't need to instrument both.
159
159
 
160
160
  The source for this instrumentation is located
161
- [here](https://github.com/salemove/ruby-activerecord-opentracing).
161
+ [here](https://github.com/signalfx/ruby-activerecord-opentracing).
162
162
 
163
163
  #### Usage
164
164
 
@@ -218,7 +218,7 @@ requests. If the remote service has instrumentation that is aware of Rack,
218
218
  those spans will be automatically nested with Faraday's spans.
219
219
 
220
220
  The source for this instrumentation is located
221
- [here](https://github.com/opentracing-contrib/ruby-faraday-tracer).
221
+ [here](https://github.com/signalfx/ruby-faraday-tracer).
222
222
 
223
223
  #### Usage
224
224
 
@@ -4,21 +4,21 @@ require 'ostruct'
4
4
  require 'pp'
5
5
 
6
6
  instrumentations = {
7
- "activerecord" => ["activerecord-opentracing", "~> 0.2.1"],
8
- "elasticsearch" => ["signalfx-elasticsearch-instrumentation", "~> 0.1.0"],
9
- "faraday" => ["signalfx-faraday-instrumentation", "~> 0.1.1"],
10
- "grape" => ["grape-instrumentation", "~> 0.2.0"],
11
- "mongodb" => ["mongodb-instrumentation", "~> 0.1.1"],
12
- "mysql2" => ["mysql2-instrumentation", "~> 0.2.1"],
13
- "nethttp" => ["nethttp-instrumentation", "~> 0.1.2"],
14
- "pg" => ["pg-instrumentation", "~> 0.1.0"],
15
- "rack" => ["sfx-rack-tracer", "~> 0.10.0"],
16
- "rails" => ["rails-instrumentation", "~> 0.1.5"],
17
- "redis" => ["redis-instrumentation", "~> 0.2.0"],
18
- "restclient" => ["restclient-instrumentation", "~> 0.1.1"],
19
- "sequel" => ["sequel-instrumentation", "~> 0.1.0"],
20
- "sidekiq" => ["sfx-sidekiq-opentracing", "~> 0.0.3"],
21
- "sinatra" => ["sinatra-instrumentation", "~> 0.1.2"]
7
+ "activerecord" => ["signalfx-activerecord-opentracing", "~> 0.1.0"],
8
+ "elasticsearch" => ["signalfx-elasticsearch-instrumentation", "~> 0.2.0"],
9
+ "faraday" => ["signalfx-faraday-instrumentation", "~> 0.2.0"],
10
+ "grape" => ["signalfx-grape-instrumentation", "~> 0.1.0"],
11
+ "mongodb" => ["signalfx-mongodb-instrumentation", "~> 0.1.1"],
12
+ "mysql2" => ["signalfx-mysql2-instrumentation", "~> 0.1.1"],
13
+ "nethttp" => ["signalfx-nethttp-instrumentation", "~> 0.2.0"],
14
+ "pg" => ["signalfx-pg-instrumentation", "~> 0.1.0"],
15
+ "rack" => ["signalfx-rack-tracer", "~> 0.1.0"],
16
+ "rails" => ["signalfx-rails-instrumentation", "~> 0.2.0"],
17
+ "redis" => ["signalfx-redis-instrumentation", "~> 0.1.0"],
18
+ "restclient" => ["signalfx-restclient-instrumentation", "~> 0.1.0"],
19
+ "sequel" => ["signalfx-sequel-instrumentation", "~> 0.1.0"],
20
+ "sidekiq" => ["signalfx-sidekiq-opentracing", "~> 0.1.0"],
21
+ "sinatra" => ["signalfx-sinatra-instrumentation", "~> 0.1.0"]
22
22
  }
23
23
 
24
24
  options = OpenStruct.new
@@ -1,17 +1,17 @@
1
1
  group :instrumentations do
2
- gem 'activerecord-opentracing', '~> 0.2.1'
3
- gem 'grape-instrumentation', "~> 0.2.0"
4
- gem 'mongodb-instrumentation', '~> 0.1.1'
5
- gem 'mysql2-instrumentation', '~> 0.2.1'
6
- gem 'nethttp-instrumentation', '~> 0.1.2'
7
- gem 'pg-instrumentation', '~> 0.1.0'
8
- gem 'sfx-rack-tracer', '~> 0.10.0'
9
- gem 'rails-instrumentation', '~> 0.1.5'
10
- gem 'redis-instrumentation', '~> 0.2.0'
11
- gem 'restclient-instrumentation', '~> 0.1.1'
12
- gem 'sequel-instrumentation', '~> 0.1.0'
13
- gem 'sfx-sidekiq-opentracing', '~> 0.0.3'
14
- gem 'signalfx-elasticsearch-instrumentation', '~> 0.1.0'
15
- gem 'signalfx-faraday-instrumentation', '~> 0.1.1'
16
- gem 'sinatra-instrumentation', '~> 0.1.2'
2
+ gem 'signalfx-activerecord-opentracing', '~> 0.1.0'
3
+ gem 'signalfx-grape-instrumentation', "~> 0.1.0"
4
+ gem 'signalfx-mongodb-instrumentation', '~> 0.1.1'
5
+ gem 'signalfx-mysql2-instrumentation', '~> 0.1.1'
6
+ gem 'signalfx-nethttp-instrumentation', '~> 0.2.0'
7
+ gem 'signalfx-pg-instrumentation', '~> 0.1.0'
8
+ gem 'signalfx-rack-tracer', '~> 0.1.0'
9
+ gem 'signalfx-rails-instrumentation', '~> 0.2.0'
10
+ gem 'signalfx-redis-instrumentation', '~> 0.1.0'
11
+ gem 'signalfx-restclient-instrumentation', '~> 0.1.0'
12
+ gem 'signalfx-sequel-instrumentation', '~> 0.1.0'
13
+ gem 'signalfx-sidekiq-opentracing', '~> 0.1.0'
14
+ gem 'signalfx-elasticsearch-instrumentation', '~> 0.2.0'
15
+ gem 'signalfx-faraday-instrumentation', '~> 0.2.0'
16
+ gem 'signalfx-sinatra-instrumentation', '~> 0.1.0'
17
17
  end
@@ -4,24 +4,15 @@ module SignalFx
4
4
  module Tracing
5
5
  module Span
6
6
  def record_exception(exception, record_error=true)
7
- set_tag('error', true) if record_error
8
-
9
- fields = {
10
- :event => 'error',
11
- :'error.kind' => exception.class.to_s,
12
- :'error.object' => exception,
13
- :message => exception.message,
14
- }
15
-
7
+ set_tag(:error, true) if record_error
8
+ set_tag(:'sfx.error.kind', exception.class.to_s)
9
+ set_tag(:'sfx.error.message', exception.message)
16
10
  if not exception.backtrace.nil?
17
- fields[:stack] = exception.backtrace.join('\n')
11
+ set_tag(:'sfx.error.stack', exception.backtrace.join('\n'))
18
12
  end
19
-
20
- log_kv(**fields)
21
13
  end
22
14
  end
23
15
  end
24
16
  end
25
17
 
26
-
27
- Jaeger::Span.class_eval { include SignalFx::Tracing::Span }
18
+ Jaeger::Span.class_eval { prepend SignalFx::Tracing::Span }
@@ -1,5 +1,5 @@
1
1
  module Signalfx
2
2
  module Tracing
3
- VERSION = "2.0.0"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signalfx-tracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SignalFx, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-04 00:00:00.000000000 Z
11
+ date: 2020-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler