ddtrace 0.30.0 → 0.30.1

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.
@@ -6,6 +6,7 @@ module Datadog
6
6
  # SyncWriter flushes both services and traces synchronously
7
7
  class SyncWriter
8
8
  attr_reader \
9
+ :priority_sampler,
9
10
  :runtime_metrics,
10
11
  :transport
11
12
 
@@ -19,6 +20,8 @@ module Datadog
19
20
  @runtime_metrics = options.fetch(:runtime_metrics) do
20
21
  Runtime::Metrics.new
21
22
  end
23
+
24
+ @priority_sampler = options.fetch(:priority_sampler, nil)
22
25
  end
23
26
 
24
27
  def write(trace, services = nil)
@@ -2,7 +2,7 @@ module Datadog
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 30
5
- PATCH = 0
5
+ PATCH = 1
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
@@ -128,7 +128,9 @@ module Datadog
128
128
  end
129
129
 
130
130
  # Associate root span with runtime metrics
131
- runtime_metrics.associate_with_span(trace.first) unless trace.empty?
131
+ if Datadog.configuration.runtime_metrics_enabled && !trace.empty?
132
+ runtime_metrics.associate_with_span(trace.first)
133
+ end
132
134
 
133
135
  @worker.enqueue_trace(trace)
134
136
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddtrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.30.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-05 00:00:00.000000000 Z
11
+ date: 2019-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -276,20 +276,6 @@ dependencies:
276
276
  - - "~>"
277
277
  - !ruby/object:Gem::Version
278
278
  version: 0.4.9.2
279
- - !ruby/object:Gem::Dependency
280
- name: warning
281
- requirement: !ruby/object:Gem::Requirement
282
- requirements:
283
- - - ">="
284
- - !ruby/object:Gem::Version
285
- version: '0'
286
- type: :development
287
- prerelease: false
288
- version_requirements: !ruby/object:Gem::Requirement
289
- requirements:
290
- - - ">="
291
- - !ruby/object:Gem::Version
292
- version: '0'
293
279
  description: |
294
280
  ddtrace is Datadog’s tracing client for Ruby. It is used to trace requests
295
281
  as they flow across web servers, databases and microservices so that developers
@@ -684,7 +670,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
684
670
  - !ruby/object:Gem::Version
685
671
  version: '0'
686
672
  requirements: []
687
- rubygems_version: 3.0.6
673
+ rubyforge_project:
674
+ rubygems_version: 2.6.14
688
675
  signing_key:
689
676
  specification_version: 4
690
677
  summary: Datadog tracing code for your Ruby applications