opentelemetry-instrumentation-mysql2 0.27.1 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +57 -50
- data/README.md +4 -3
- data/lib/opentelemetry/instrumentation/mysql2/patches/client.rb +2 -2
- data/lib/opentelemetry/instrumentation/mysql2/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: 1028a41f975ce0d90787a4ecf1dd52d86025c0e4f543a545fc70b1d8544b7dba
|
4
|
+
data.tar.gz: 1d5e1251ef16a1920860402eaf261e9cf04555e66de8237fd839fe45ef9bf132
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab8ec2f2c6b1c1bee9c81e4e884c0cf482740a2a2bffed4b761e4fb395061e6855e48ae72cc6bb80d344158dd1d0b593956fb8cf88cce4d7dafbd4447b76e502
|
7
|
+
data.tar.gz: 8ea41f0afb04860b12920c1797f50896a2f0e4190913419241bd9df0f56c2807fb433738ae7aebb281fd11e54b3e2ffcbcacaad0aac124371288d952d44b8dca
|
data/CHANGELOG.md
CHANGED
@@ -1,153 +1,160 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-mysql2
|
2
2
|
|
3
|
+
### v0.28.0 / 2024-09-12
|
4
|
+
|
5
|
+
- BREAKING CHANGE: Return message when sql is over the obfuscation limit. Fixes a bug where sql statements with prepended comments that hit the obfuscation limit would be sent raw.
|
6
|
+
|
7
|
+
### v0.27.2 / 2024-07-23
|
8
|
+
|
9
|
+
- DOCS: Add cspell to CI
|
10
|
+
|
3
11
|
### v0.27.1 / 2024-04-30
|
4
12
|
|
5
|
-
|
13
|
+
- FIXED: Bundler conflict warnings
|
6
14
|
|
7
15
|
### v0.27.0 / 2024-02-15
|
8
16
|
|
9
|
-
|
17
|
+
- ADDED: Instrument mysql2 prepare statement
|
10
18
|
|
11
19
|
### v0.26.1 / 2024-02-08
|
12
20
|
|
13
|
-
|
21
|
+
- FIXED: Add missing requires for sql-helpers to mysql, pg, and trilogy instrumentation
|
14
22
|
|
15
23
|
### v0.26.0 / 2024-02-08
|
16
24
|
|
17
|
-
|
18
|
-
|
25
|
+
- BREAKING CHANGE: Move shared sql behavior to helper gems
|
19
26
|
|
20
27
|
### v0.25.0 / 2023-10-16
|
21
28
|
|
22
|
-
|
29
|
+
- BREAKING CHANGE: Obfuscation for mysql2, dalli and postgresql as default option for db_statement
|
23
30
|
|
24
|
-
|
31
|
+
- ADDED: Obfuscation for mysql2, dalli and postgresql as default option for db_statement
|
25
32
|
|
26
33
|
### v0.24.3 / 2023-08-03
|
27
34
|
|
28
|
-
|
35
|
+
- FIXED: Remove inline linter rules
|
29
36
|
|
30
37
|
### v0.24.2 / 2023-06-05
|
31
38
|
|
32
|
-
|
39
|
+
- FIXED: Base config options
|
33
40
|
|
34
41
|
### v0.24.1 / 2023-06-01
|
35
42
|
|
36
|
-
|
43
|
+
- FIXED: Regex non-match with obfuscation limit (issue #486)
|
37
44
|
|
38
45
|
### v0.24.0 / 2023-05-25
|
39
46
|
|
40
|
-
|
47
|
+
- ADDED: Add config[:obfuscation_limit] to pg and mysql2
|
41
48
|
|
42
49
|
### v0.23.0 / 2023-04-17
|
43
50
|
|
44
|
-
|
51
|
+
- BREAKING CHANGE: Drop support for EoL Ruby 2.7
|
45
52
|
|
46
|
-
|
47
|
-
|
53
|
+
- ADDED: Drop support for EoL Ruby 2.7
|
54
|
+
- FIXED: Ensure encoding errors handled during SQL obfuscation for Trilogy
|
48
55
|
|
49
56
|
### v0.22.0 / 2023-01-14
|
50
57
|
|
51
|
-
|
58
|
+
- BREAKING CHANGE: Removed deprecated instrumentation options
|
52
59
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
60
|
+
- ADDED: Add option to configure span name
|
61
|
+
- ADDED: Removed deprecated instrumentation options
|
62
|
+
- DOCS: Fix gem homepage
|
63
|
+
- DOCS: More gem documentation fixes
|
57
64
|
|
58
65
|
### v0.21.1 / 2022-10-26
|
59
66
|
|
60
|
-
|
67
|
+
- FIXED: Handle encoding errors in mysql obfuscation
|
61
68
|
|
62
69
|
### v0.21.0 / 2022-06-09
|
63
70
|
|
64
|
-
|
65
|
-
|
71
|
+
- Upgrading Base dependency version
|
72
|
+
- FIXED: Broken test file requirements
|
66
73
|
|
67
74
|
### v0.20.1 / 2022-05-03
|
68
75
|
|
69
|
-
|
76
|
+
- ADDED: `with_attributes` method for context propagation
|
70
77
|
|
71
78
|
### v0.20.0 / 2021-12-01
|
72
79
|
|
73
|
-
|
80
|
+
- ADDED: Add default options config helper + env var config option support
|
74
81
|
|
75
82
|
### v0.19.1 / 2021-09-29
|
76
83
|
|
77
|
-
|
84
|
+
- (No significant changes)
|
78
85
|
|
79
86
|
### v0.19.0 / 2021-08-12
|
80
87
|
|
81
|
-
|
88
|
+
- BREAKING CHANGE: Add option for db.statement
|
82
89
|
|
83
|
-
|
84
|
-
|
85
|
-
|
90
|
+
- ADDED: Add option for db.statement
|
91
|
+
- DOCS: Update docs to rely more on environment variable configuration
|
92
|
+
- DOCS: Move to using new db_statement
|
86
93
|
|
87
94
|
### v0.18.1 / 2021-06-23
|
88
95
|
|
89
|
-
|
96
|
+
- (No significant changes)
|
90
97
|
|
91
98
|
### v0.18.0 / 2021-05-21
|
92
99
|
|
93
|
-
|
94
|
-
|
100
|
+
- ADDED: Updated API dependency for 1.0.0.rc1
|
101
|
+
- Fix: Nil value for db.name attribute #744
|
95
102
|
|
96
103
|
### v0.17.0 / 2021-04-22
|
97
104
|
|
98
|
-
|
105
|
+
- (No significant changes)
|
99
106
|
|
100
107
|
### v0.16.0 / 2021-03-17
|
101
108
|
|
102
|
-
|
103
|
-
|
104
|
-
|
109
|
+
- FIXED: Update DB semantic conventions
|
110
|
+
- FIXED: Example scripts now reference local common lib
|
111
|
+
- ADDED: Configurable obfuscation of sql in mysql2 instrumentation to avoid logging sensitive data
|
105
112
|
|
106
113
|
### v0.15.0 / 2021-02-18
|
107
114
|
|
108
|
-
|
115
|
+
- ADDED: Add instrumentation config validation
|
109
116
|
|
110
117
|
### v0.14.0 / 2021-02-03
|
111
118
|
|
112
|
-
|
119
|
+
- (No significant changes)
|
113
120
|
|
114
121
|
### v0.13.0 / 2021-01-29
|
115
122
|
|
116
|
-
|
123
|
+
- (No significant changes)
|
117
124
|
|
118
125
|
### v0.12.0 / 2020-12-24
|
119
126
|
|
120
|
-
|
127
|
+
- (No significant changes)
|
121
128
|
|
122
129
|
### v0.11.0 / 2020-12-11
|
123
130
|
|
124
|
-
|
125
|
-
|
131
|
+
- ADDED: Add peer service config to mysql
|
132
|
+
- FIXED: Copyright comments to not reference year
|
126
133
|
|
127
134
|
### v0.10.1 / 2020-12-09
|
128
135
|
|
129
|
-
|
136
|
+
- FIXED: Semantic conventions db.type -> db.system
|
130
137
|
|
131
138
|
### v0.10.0 / 2020-12-03
|
132
139
|
|
133
|
-
|
140
|
+
- (No significant changes)
|
134
141
|
|
135
142
|
### v0.9.0 / 2020-11-27
|
136
143
|
|
137
|
-
|
144
|
+
- BREAKING CHANGE: Add timeout for force_flush and shutdown
|
138
145
|
|
139
|
-
|
146
|
+
- ADDED: Add timeout for force_flush and shutdown
|
140
147
|
|
141
148
|
### v0.8.0 / 2020-10-27
|
142
149
|
|
143
|
-
|
150
|
+
- BREAKING CHANGE: Remove 'canonical' from status codes
|
144
151
|
|
145
|
-
|
152
|
+
- FIXED: Remove 'canonical' from status codes
|
146
153
|
|
147
154
|
### v0.7.0 / 2020-10-07
|
148
155
|
|
149
|
-
|
156
|
+
- DOCS: Standardize top-level docs structure and readme
|
150
157
|
|
151
158
|
### v0.6.0 / 2020-09-10
|
152
159
|
|
153
|
-
|
160
|
+
- (No significant changes)
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ The OpenTelemetry Mysql2 Ruby gem is a community maintained instrumentation for
|
|
6
6
|
|
7
7
|
Install the gem using:
|
8
8
|
|
9
|
-
```
|
9
|
+
```console
|
10
10
|
gem install opentelemetry-instrumentation-mysql2
|
11
11
|
```
|
12
12
|
|
@@ -61,7 +61,7 @@ An example of usage can be seen in [`example/mysql2.rb`](https://github.com/open
|
|
61
61
|
|
62
62
|
The `opentelemetry-instrumentation-mysql2` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
|
63
63
|
|
64
|
-
The OpenTelemetry Ruby gems are maintained by the OpenTelemetry
|
64
|
+
The OpenTelemetry Ruby gems are maintained by the OpenTelemetry Ruby special interest group (SIG). You can get involved by joining us on our [GitHub Discussions][discussions-url], [Slack Channel][slack-channel] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
|
65
65
|
|
66
66
|
## License
|
67
67
|
|
@@ -73,4 +73,5 @@ The `opentelemetry-instrumentation-mysql2` gem is distributed under the Apache 2
|
|
73
73
|
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
|
74
74
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
75
75
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
76
|
-
[
|
76
|
+
[slack-channel]: https://cloud-native.slack.com/archives/C01NWKKMKMY
|
77
|
+
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
|
@@ -19,7 +19,7 @@ module OpenTelemetry
|
|
19
19
|
attributes: _otel_span_attributes(sql),
|
20
20
|
kind: :client
|
21
21
|
) do
|
22
|
-
super
|
22
|
+
super
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -29,7 +29,7 @@ module OpenTelemetry
|
|
29
29
|
attributes: _otel_span_attributes(sql),
|
30
30
|
kind: :client
|
31
31
|
) do
|
32
|
-
super
|
32
|
+
super
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-mysql2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 1.66.0
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 1.66.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rubocop-performance
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -241,10 +241,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
241
241
|
licenses:
|
242
242
|
- Apache-2.0
|
243
243
|
metadata:
|
244
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-mysql2/0.
|
244
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-mysql2/0.28.0/file/CHANGELOG.md
|
245
245
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/mysql2
|
246
246
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
247
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-mysql2/0.
|
247
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-mysql2/0.28.0
|
248
248
|
post_install_message:
|
249
249
|
rdoc_options: []
|
250
250
|
require_paths:
|