ddtrace 1.4.0 → 1.4.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1
- data/ext/ddtrace_profiling_loader/ddtrace_profiling_loader.c +10 -1
- data/lib/datadog/tracing/trace_operation.rb +1 -1
- data/lib/ddtrace/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '01987691359b14541248048bb2f720031b4f0f0ca0be8fade0f6d0daf7aef8cc'
|
|
4
|
+
data.tar.gz: b2cce425177f3d619d0064d88ffb52073515b8d390e054117a160eac21e939d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7232b588ee13d8a47a1fccbe39a8753a19a4e9c3b0b2dee2cb278a64b183500ec9859cfecffda8c128971bf88c93b148e6f915c2d7906139d1df050b173df42c
|
|
7
|
+
data.tar.gz: 2605640bffc586a0fd8bb38139d49fa6dad9f04bfe91a0e672cdd04a6c8a8a36896be5322a4b78ecab37175cd600bdc144109646712265b49bad4e103cc1ab5e
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [1.4.1] - 2022-09-15
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
* Missing distributed traces when trace is dropped by priority sampling ([#2101][], [#2279][])
|
|
10
|
+
* Profiling support when Ruby is compiled without a shared library ([#2250][])
|
|
11
|
+
|
|
5
12
|
## [1.4.0] - 2022-08-25
|
|
6
13
|
|
|
7
14
|
Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v1.4.0
|
|
@@ -2090,7 +2097,11 @@ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.3.1
|
|
|
2090
2097
|
|
|
2091
2098
|
Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
|
|
2092
2099
|
|
|
2093
|
-
[Unreleased]: https://github.com/DataDog/dd-trace-rb/compare/v1.1
|
|
2100
|
+
[Unreleased]: https://github.com/DataDog/dd-trace-rb/compare/v1.4.1...master
|
|
2101
|
+
[1.4.1]: https://github.com/DataDog/dd-trace-rb/compare/v1.4.0...v1.4.1
|
|
2102
|
+
[1.4.0]: https://github.com/DataDog/dd-trace-rb/compare/v1.3.0...v1.4.0
|
|
2103
|
+
[1.3.0]: https://github.com/DataDog/dd-trace-rb/compare/v1.2.0...v1.3.0
|
|
2104
|
+
[1.2.0]: https://github.com/DataDog/dd-trace-rb/compare/v1.1.0...v1.2.0
|
|
2094
2105
|
[1.1.0]: https://github.com/DataDog/dd-trace-rb/compare/v1.0.0...v1.1.0
|
|
2095
2106
|
[1.0.0]: https://github.com/DataDog/dd-trace-rb/compare/v1.0.0.beta2...v1.0.0
|
|
2096
2107
|
[1.0.0.beta2]: https://github.com/DataDog/dd-trace-rb/compare/v1.0.0.beta1...v1.0.0.beta2
|
|
@@ -2950,6 +2961,7 @@ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
|
|
|
2950
2961
|
[#2082]: https://github.com/DataDog/dd-trace-rb/issues/2082
|
|
2951
2962
|
[#2096]: https://github.com/DataDog/dd-trace-rb/issues/2096
|
|
2952
2963
|
[#2097]: https://github.com/DataDog/dd-trace-rb/issues/2097
|
|
2964
|
+
[#2101]: https://github.com/DataDog/dd-trace-rb/issues/2101
|
|
2953
2965
|
[#2110]: https://github.com/DataDog/dd-trace-rb/issues/2110
|
|
2954
2966
|
[#2113]: https://github.com/DataDog/dd-trace-rb/issues/2113
|
|
2955
2967
|
[#2118]: https://github.com/DataDog/dd-trace-rb/issues/2118
|
|
@@ -2970,6 +2982,8 @@ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
|
|
|
2970
2982
|
[#2201]: https://github.com/DataDog/dd-trace-rb/issues/2201
|
|
2971
2983
|
[#2219]: https://github.com/DataDog/dd-trace-rb/issues/2219
|
|
2972
2984
|
[#2229]: https://github.com/DataDog/dd-trace-rb/issues/2229
|
|
2985
|
+
[#2250]: https://github.com/DataDog/dd-trace-rb/issues/2250
|
|
2986
|
+
[#2279]: https://github.com/DataDog/dd-trace-rb/issues/2279
|
|
2973
2987
|
[@AdrianLC]: https://github.com/AdrianLC
|
|
2974
2988
|
[@Azure7111]: https://github.com/Azure7111
|
|
2975
2989
|
[@BabyGroot]: https://github.com/BabyGroot
|
|
@@ -85,7 +85,16 @@ static bool failed_to_load(void *handle, VALUE *failure_details) {
|
|
|
85
85
|
static bool incompatible_library(void *handle, VALUE *failure_details) {
|
|
86
86
|
// The library being loaded may be linked to a different libruby than the current executing Ruby.
|
|
87
87
|
// We check if this is the case by checking if a well-known symbol resolves to a common address.
|
|
88
|
-
|
|
88
|
+
|
|
89
|
+
void *xmalloc_from_library = dlsym(handle, "ruby_xmalloc");
|
|
90
|
+
|
|
91
|
+
if (xmalloc_from_library == NULL) {
|
|
92
|
+
// This happens when ruby is built without a `libruby.so` by using `--disable-shared` at compilation time.
|
|
93
|
+
// In this situation, no conflict between libruby version is possible.
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (xmalloc_from_library != &ruby_xmalloc) {
|
|
89
98
|
*failure_details = rb_str_new_cstr("library was compiled and linked to a different Ruby version");
|
|
90
99
|
unload_failed_library(handle);
|
|
91
100
|
return true;
|
|
@@ -74,7 +74,7 @@ module Datadog
|
|
|
74
74
|
@id = id || Core::Utils.next_id
|
|
75
75
|
@max_length = max_length || DEFAULT_MAX_LENGTH
|
|
76
76
|
@parent_span_id = parent_span_id
|
|
77
|
-
@sampled = sampled.nil? ?
|
|
77
|
+
@sampled = sampled.nil? ? true : sampled
|
|
78
78
|
|
|
79
79
|
# Tags
|
|
80
80
|
@agent_sample_rate = agent_sample_rate
|
data/lib/ddtrace/version.rb
CHANGED
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: 1.4.
|
|
4
|
+
version: 1.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Datadog, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: msgpack
|
|
@@ -778,7 +778,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
778
778
|
- !ruby/object:Gem::Version
|
|
779
779
|
version: 2.0.0
|
|
780
780
|
requirements: []
|
|
781
|
-
rubygems_version: 3.3.
|
|
781
|
+
rubygems_version: 3.3.3
|
|
782
782
|
signing_key:
|
|
783
783
|
specification_version: 4
|
|
784
784
|
summary: Datadog tracing code for your Ruby applications
|