ddtrace 1.23.0 → 1.23.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: b5e8a3ccb932af75df7d30d6fe59edc8277e21ee34a9562f7c2c8bfba1ea7521
4
- data.tar.gz: 1508bf7e56a24af598aad666665be6cd0a7b97c9cbf3bbcc95a3fda36b67c07a
3
+ metadata.gz: 1957f7ac42439a5ec9b5c6c1d1700a91b226ccc06def53d0bf3fdd701c55436e
4
+ data.tar.gz: 3a9ad0d54e59350c3718eb69ee854a756819567b7bd6d4218f0539c87156078e
5
5
  SHA512:
6
- metadata.gz: afccca8d070d1dfd472af2390da1b343dff3199c42a71e742f10e29e91ddb27a6fa709490adcd639e6914f792b8e8565f667ff5d916f9f0f6690d69b8d8b0b54
7
- data.tar.gz: 581022bd8d146fe01e9dac70a309e58d503d48ed8420b845a6b91200796ce9a0b1c2bc29fb58382ddc546abd00785d2f6ee42863e1bc6df517052a566352604e
6
+ metadata.gz: 60ce1f6e6e60cfbfe6f2a3241fc431b9357eefe3866912a82ea672838af323ba6ab441fe50f483a1bc6f26510d500fb00ab62107e770d4c427c6a5952225feac
7
+ data.tar.gz: 90c4037291c16fa50614509bab19bf45f6283937466e6f9ee6b28fbe7cde73d39ffd14ecc8fb082104aa1d70c7c748ebccff1683dcda772a3665e4f7c94ad619
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.23.1] - 2024-06-06
6
+
7
+ ### Fixed
8
+
9
+ AppSec: Fix undefined method error when Tracing disabled ([#3650][])
10
+
5
11
  ## [1.23.0] - 2024-05-09
6
12
 
7
13
  ### Added
@@ -2815,6 +2821,7 @@ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
2815
2821
 
2816
2822
 
2817
2823
  [Unreleased]: https://github.com/DataDog/dd-trace-rb/compare/v1.22.0...master
2824
+ [1.23.1]: https://github.com/DataDog/dd-trace-rb/compare/v1.23.0...v1.23.1
2818
2825
  [1.23.0]: https://github.com/DataDog/dd-trace-rb/compare/v1.22.0...v1.23.0
2819
2826
  [1.22.0]: https://github.com/DataDog/dd-trace-rb/compare/v1.21.1...v1.22.0
2820
2827
  [2.0.0.beta1]: https://github.com/DataDog/dd-trace-rb/compare/v1.21.1...v2.0.0.beta1
@@ -4126,6 +4133,7 @@ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
4126
4133
  [#3618]: https://github.com/DataDog/dd-trace-rb/issues/3618
4127
4134
  [#3619]: https://github.com/DataDog/dd-trace-rb/issues/3619
4128
4135
  [#3623]: https://github.com/DataDog/dd-trace-rb/issues/3623
4136
+ [#3650]: https://github.com/DataDog/dd-trace-rb/issues/3650
4129
4137
  [@AdrianLC]: https://github.com/AdrianLC
4130
4138
  [@Azure7111]: https://github.com/Azure7111
4131
4139
  [@BabyGroot]: https://github.com/BabyGroot
@@ -13,12 +13,16 @@ module Datadog
13
13
  SIGNUP_EVENT = 'users.signup'
14
14
 
15
15
  def self.track_login_success(trace, span, user_id:, **others)
16
+ return if trace.nil? || span.nil?
17
+
16
18
  track(LOGIN_SUCCESS_EVENT, trace, span, **others)
17
19
 
18
20
  Kit::Identity.set_user(trace, span, id: user_id.to_s, **others) if user_id
19
21
  end
20
22
 
21
23
  def self.track_login_failure(trace, span, user_id:, user_exists:, **others)
24
+ return if trace.nil? || span.nil?
25
+
22
26
  track(LOGIN_FAILURE_EVENT, trace, span, **others)
23
27
 
24
28
  span.set_tag('appsec.events.users.login.failure.usr.id', user_id) if user_id
@@ -26,11 +30,15 @@ module Datadog
26
30
  end
27
31
 
28
32
  def self.track_signup(trace, span, user_id:, **others)
33
+ return if trace.nil? || span.nil?
34
+
29
35
  track(SIGNUP_EVENT, trace, span, **others)
30
36
  Kit::Identity.set_user(trace, id: user_id.to_s, **others) if user_id
31
37
  end
32
38
 
33
39
  def self.track(event, trace, span, **others)
40
+ return if trace.nil? || span.nil?
41
+
34
42
  span.set_tag("appsec.events.#{event}.track", 'true')
35
43
  span.set_tag("_dd.appsec.events.#{event}.auto.mode", Datadog.configuration.appsec.track_user_events.mode)
36
44
 
@@ -4,7 +4,7 @@ module DDTrace
4
4
  module VERSION
5
5
  MAJOR = 1
6
6
  MINOR = 23
7
- PATCH = 0
7
+ PATCH = 1
8
8
  PRE = nil
9
9
  BUILD = nil
10
10
  # PRE and BUILD above are modified for dev gems during gem build GHA workflow
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.23.0
4
+ version: 1.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-09 00:00:00.000000000 Z
11
+ date: 2024-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -876,10 +876,12 @@ files:
876
876
  homepage: https://github.com/DataDog/dd-trace-rb
877
877
  licenses:
878
878
  - BSD-3-Clause
879
+ - Apache-2.0
879
880
  metadata:
880
881
  allowed_push_host: https://rubygems.org
881
- changelog_uri: https://github.com/DataDog/dd-trace-rb/blob/master/CHANGELOG.md
882
- post_install_message:
882
+ changelog_uri: https://github.com/DataDog/dd-trace-rb/blob/v1.23.1/CHANGELOG.md
883
+ source_code_uri: https://github.com/DataDog/dd-trace-rb/tree/v1.23.1
884
+ post_install_message:
883
885
  rdoc_options: []
884
886
  require_paths:
885
887
  - lib
@@ -897,8 +899,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
897
899
  - !ruby/object:Gem::Version
898
900
  version: 2.0.0
899
901
  requirements: []
900
- rubygems_version: 3.4.10
901
- signing_key:
902
+ rubygems_version: 3.4.21
903
+ signing_key:
902
904
  specification_version: 4
903
905
  summary: Datadog tracing code for your Ruby applications
904
906
  test_files: []