traces-backend-datadog 0.4.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/traces/backend/datadog/interface.rb +6 -12
- data/lib/traces/backend/datadog/version.rb +2 -2
- data/license.md +1 -1
- data/readme.md +8 -0
- data.tar.gz.sig +0 -0
- metadata +11 -38
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a34f0c370796cac63909234a32d1f3c5f34a7545fbd7bd922b82575a384639a
|
4
|
+
data.tar.gz: a585c164489e863a19fe5d8e00a1176a2dc3f48dfb5414803fdcb5243f8d5083
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a7335a25d07e2547344c9cb201616915ef53af98fe0eca676d48baf62b5cc2d5986fc8dfb6c8c8f0a0779e4dcde3262f7cdc87bebc784cb8c1f4286807c0e98
|
7
|
+
data.tar.gz: 4e7094cf6c5f24973a7fcfcb7c458a69178e15925079afea8a0699b1e4599b8404f72f124c03bae035502cb3b277fc8b551d8dfcb9b830d68e9e259aa5a14775
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -1,25 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2021-
|
4
|
+
# Copyright, 2021-2024, by Samuel Williams.
|
5
5
|
|
6
|
-
require '
|
6
|
+
require 'datadog'
|
7
7
|
|
8
8
|
require 'traces/context'
|
9
9
|
require_relative 'version'
|
10
10
|
|
11
|
-
# We introduce some compatibility interfaces for getting and setting tags:
|
12
|
-
module Datadog::Tracing::Metadata::Tagging
|
13
|
-
alias []= set_tag
|
14
|
-
alias [] get_tag
|
15
|
-
end
|
16
|
-
|
17
11
|
module Traces
|
18
12
|
module Backend
|
19
13
|
module Datadog
|
20
14
|
module Interface
|
21
|
-
def trace(name,
|
22
|
-
::Datadog::Tracing.trace(name,
|
15
|
+
def trace(name, resource: nil, attributes: {}, &block)
|
16
|
+
::Datadog::Tracing.trace(name, resource: resource, tags: attributes, &block)
|
23
17
|
end
|
24
18
|
|
25
19
|
def trace_context=(context)
|
@@ -30,7 +24,7 @@ module Traces
|
|
30
24
|
span_id: context.parent_id.to_i,
|
31
25
|
trace_sampling_priority: context.sampled? ? 1 : 0,
|
32
26
|
)
|
33
|
-
|
27
|
+
|
34
28
|
::Datadog::Tracing.continue_trace!(trace_digest)
|
35
29
|
end
|
36
30
|
end
|
@@ -46,7 +40,7 @@ module Traces
|
|
46
40
|
|
47
41
|
return Context.new(
|
48
42
|
trace.id,
|
49
|
-
trace.active_span.
|
43
|
+
trace.active_span.id,
|
50
44
|
flags,
|
51
45
|
nil,
|
52
46
|
remote: false,
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2021-
|
4
|
+
# Copyright, 2021-2023, by Samuel Williams.
|
5
5
|
|
6
6
|
module Traces
|
7
7
|
module Backend
|
8
8
|
module Datadog
|
9
|
-
VERSION = "0.
|
9
|
+
VERSION = "0.6.0"
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
data/license.md
CHANGED
data/readme.md
CHANGED
@@ -25,3 +25,11 @@ We welcome contributions to this project.
|
|
25
25
|
3. Commit your changes (`git commit -am 'Add some feature'`).
|
26
26
|
4. Push to the branch (`git push origin my-new-feature`).
|
27
27
|
5. Create new Pull Request.
|
28
|
+
|
29
|
+
### Developer Certificate of Origin
|
30
|
+
|
31
|
+
In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
|
32
|
+
|
33
|
+
### Community Guidelines
|
34
|
+
|
35
|
+
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traces-backend-datadog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -37,64 +37,36 @@ cert_chain:
|
|
37
37
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
38
38
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
39
39
|
-----END CERTIFICATE-----
|
40
|
-
date:
|
40
|
+
date: 2024-08-25 00:00:00.000000000 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: datadog
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '2.3'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '2.3'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: traces
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '0.
|
62
|
+
version: '0.10'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0.
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: sus
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: bake-test
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '0'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
69
|
+
version: '0.10'
|
98
70
|
description:
|
99
71
|
email:
|
100
72
|
executables: []
|
@@ -109,7 +81,8 @@ files:
|
|
109
81
|
homepage: https://github.com/socketry/traces-backend-datadog
|
110
82
|
licenses:
|
111
83
|
- MIT
|
112
|
-
metadata:
|
84
|
+
metadata:
|
85
|
+
source_code_uri: https://github.com/socketry/traces-backend-datadog.git
|
113
86
|
post_install_message:
|
114
87
|
rdoc_options: []
|
115
88
|
require_paths:
|
@@ -118,14 +91,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
91
|
requirements:
|
119
92
|
- - ">="
|
120
93
|
- !ruby/object:Gem::Version
|
121
|
-
version: '
|
94
|
+
version: '3.1'
|
122
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
96
|
requirements:
|
124
97
|
- - ">="
|
125
98
|
- !ruby/object:Gem::Version
|
126
99
|
version: '0'
|
127
100
|
requirements: []
|
128
|
-
rubygems_version: 3.
|
101
|
+
rubygems_version: 3.5.11
|
129
102
|
signing_key:
|
130
103
|
specification_version: 4
|
131
104
|
summary: A traces backend for Datadog.
|
metadata.gz.sig
CHANGED
Binary file
|