dogstatsd-ruby 5.6.2 → 5.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/datadog/statsd/serialization/stat_serializer.rb +11 -2
- data/lib/datadog/statsd/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63a4ebc24fc1656531a195fe3e04b631a1dc626a473f836db5d8efac8a75c150
|
4
|
+
data.tar.gz: 0a055f4ff9cb74b9de2eb05915edc2149a705063b4aafcfcfaa870051dc72654
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ede8a6c674604abe8ac9f139bf083aeaca51dd98455e6542990f4cbe441bfc12ec29267e1e428aeafde57e2ac72fdc7e417e7e8286ed565cc420fcd41313d61
|
7
|
+
data.tar.gz: e19e9d6f15da7051c16ddfa544d7599b2927a165dc8300cd815c5153d5040b9cef33b2f59d02166efa592acf8c171a20374d35f93156e534be949b7d782a434b
|
@@ -37,9 +37,18 @@ module Datadog
|
|
37
37
|
attr_reader :prefix
|
38
38
|
attr_reader :tag_serializer
|
39
39
|
|
40
|
-
|
41
|
-
|
40
|
+
if RUBY_VERSION < '3'
|
41
|
+
def metric_name_to_string(metric_name)
|
42
|
+
metric_name.to_s
|
43
|
+
end
|
44
|
+
else
|
45
|
+
def metric_name_to_string(metric_name)
|
46
|
+
Symbol === metric_name ? metric_name.name : metric_name.to_s
|
47
|
+
end
|
48
|
+
end
|
42
49
|
|
50
|
+
def formatted_metric_name(metric_name)
|
51
|
+
formatted = metric_name_to_string(metric_name)
|
43
52
|
if formatted.include?('::')
|
44
53
|
formatted = formatted.gsub('::', '.')
|
45
54
|
formatted.tr!(':|@', '_')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dogstatsd-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.6.
|
4
|
+
version: 5.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rein Henrichs
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-12-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A Ruby DogStatsd client
|
15
15
|
email: code@datadoghq.com
|
@@ -44,9 +44,9 @@ licenses:
|
|
44
44
|
- MIT
|
45
45
|
metadata:
|
46
46
|
bug_tracker_uri: https://github.com/DataDog/dogstatsd-ruby/issues
|
47
|
-
changelog_uri: https://github.com/DataDog/dogstatsd-ruby/blob/v5.6.
|
48
|
-
documentation_uri: https://www.rubydoc.info/gems/dogstatsd-ruby/5.6.
|
49
|
-
source_code_uri: https://github.com/DataDog/dogstatsd-ruby/tree/v5.6.
|
47
|
+
changelog_uri: https://github.com/DataDog/dogstatsd-ruby/blob/v5.6.4/CHANGELOG.md
|
48
|
+
documentation_uri: https://www.rubydoc.info/gems/dogstatsd-ruby/5.6.4
|
49
|
+
source_code_uri: https://github.com/DataDog/dogstatsd-ruby/tree/v5.6.4
|
50
50
|
post_install_message: |2+
|
51
51
|
|
52
52
|
If you are upgrading from v4.x of the dogstatsd-ruby library, note the major change to the threading model:
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
69
|
+
rubygems_version: 3.4.6
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: A Ruby DogStatsd client
|