opentelemetry-instrumentation-pg 0.27.1 → 0.27.3

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: a914611c0017f6fa3a8c48070b3de29f14fb25f2555f898fbdeae8081739f039
4
- data.tar.gz: 6778c49ceb66ad6835fa70bd158d23d3153ae7155df507d1475d049a313d518c
3
+ metadata.gz: da089229dce97d7a2b910b1e74cbb247ca1a527c6789f94293187d7b6c210067
4
+ data.tar.gz: 0771762b5fab0d4ae9b453389b0657f808455ff76f255dcdfd36644879fecb37
5
5
  SHA512:
6
- metadata.gz: a7b6d739265ac538d593597a929e7798f8923c99ce9fa1c270e3b663f96d6c9c78142c94b9e6b0829921bb73c3add5fe87c3dd27e92fc43f6613c95d9ff1fa80
7
- data.tar.gz: e1ce883e4f2c822088ab224c3015bb2467cdd3945a6012d2a1e95666a61e1dd1471b11b5b054c48f6ea97661026023cb9b1257c5b90d0644e5a3725356827a7d
6
+ metadata.gz: 584ec4104a7fe209024823f01054087f3ec9ef8dc145a2585b17f2901f9720aa67be4e6e9ebe4c45bcd4468a211bb1d4575aaffe3bdf25dd789be96662bd8806
7
+ data.tar.gz: c9045e9ebb8a1e06590c3956372ab9da55aaaa911ead75aaa32ddcf876a8acb13e53dd5c0545b18fa5e75273481c20f2811100c74fd6994d4a41818525f92a8c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release History: opentelemetry-instrumentation-pg
2
2
 
3
+ ### v0.27.3 / 2024-05-11
4
+
5
+ * ADDED: Support prepend SQL comment for PG instrumentation
6
+
7
+ ### v0.27.2 / 2024-04-30
8
+
9
+ * FIXED: Bundler conflict warnings
10
+
3
11
  ### v0.27.1 / 2024-02-08
4
12
 
5
13
  * FIXED: Add missing requires for sql-helpers to mysql, pg, and trilogy instrumentation
@@ -112,7 +112,9 @@ module OpenTelemetry
112
112
 
113
113
  def extract_operation(sql)
114
114
  # From: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/9244a08a8d014afe26b82b91cf86e407c2599d73/plugins/node/opentelemetry-instrumentation-pg/src/utils.ts#L35
115
- sql.to_s.split[0].to_s.upcase
115
+ # Ignores prepend comment
116
+ comment_regex = %r{\A\/\*.*?\*\/}m
117
+ sql.to_s.sub(comment_regex, '').split[0].to_s.upcase
116
118
  end
117
119
 
118
120
  def span_name(operation)
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module PG
10
- VERSION = '0.27.1'
10
+ VERSION = '0.27.3'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.1
4
+ version: 0.27.3
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-02-08 00:00:00.000000000 Z
11
+ date: 2024-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -136,20 +136,6 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0.3'
139
- - !ruby/object:Gem::Dependency
140
- name: pg
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: 1.1.0
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 1.1.0
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: pry
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +170,14 @@ dependencies:
184
170
  requirements:
185
171
  - - "~>"
186
172
  - !ruby/object:Gem::Version
187
- version: 1.60.1
173
+ version: '1.62'
188
174
  type: :development
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
178
  - - "~>"
193
179
  - !ruby/object:Gem::Version
194
- version: 1.60.1
180
+ version: '1.62'
195
181
  - !ruby/object:Gem::Dependency
196
182
  name: rubocop-performance
197
183
  requirement: !ruby/object:Gem::Requirement
@@ -257,10 +243,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
257
243
  licenses:
258
244
  - Apache-2.0
259
245
  metadata:
260
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.27.1/file/CHANGELOG.md
246
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.27.3/file/CHANGELOG.md
261
247
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/pg
262
248
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
263
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.27.1
249
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.27.3
264
250
  post_install_message:
265
251
  rdoc_options: []
266
252
  require_paths: