opentelemetry-instrumentation-pg 0.27.2 → 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: 68f1047b3d25442f96fb9fa0f10d10b98fb3548e82ba78474fbd388a0af3603d
4
- data.tar.gz: 17bbb6ddcf943bf302e9b6ddf86a1782ecaa36f8cdce8f8db191de518441e645
3
+ metadata.gz: da089229dce97d7a2b910b1e74cbb247ca1a527c6789f94293187d7b6c210067
4
+ data.tar.gz: 0771762b5fab0d4ae9b453389b0657f808455ff76f255dcdfd36644879fecb37
5
5
  SHA512:
6
- metadata.gz: 593698f81d0116f9927b1872a11f22a49cf19b6b60d2b8b66155c6f3b741b877a01b0fb4b475f820b9fcf591225f1802e790a0324e9c5755d155067129930e1a
7
- data.tar.gz: dfbd062c3b8285db9a5fd8b1f2ecddc0cb85129364d5d5740593b4ca838e7f1388ec5ed923a14aae497d39af0b57f521c1fe5a66c74d2a880ab17ced9de6cbd3
6
+ metadata.gz: 584ec4104a7fe209024823f01054087f3ec9ef8dc145a2585b17f2901f9720aa67be4e6e9ebe4c45bcd4468a211bb1d4575aaffe3bdf25dd789be96662bd8806
7
+ data.tar.gz: c9045e9ebb8a1e06590c3956372ab9da55aaaa911ead75aaa32ddcf876a8acb13e53dd5c0545b18fa5e75273481c20f2811100c74fd6994d4a41818525f92a8c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.27.2 / 2024-04-30
4
8
 
5
9
  * FIXED: Bundler conflict warnings
@@ -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.2'
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.2
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-04-30 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
@@ -243,10 +243,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
243
243
  licenses:
244
244
  - Apache-2.0
245
245
  metadata:
246
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.27.2/file/CHANGELOG.md
246
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.27.3/file/CHANGELOG.md
247
247
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/pg
248
248
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
249
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.27.2
249
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.27.3
250
250
  post_install_message:
251
251
  rdoc_options: []
252
252
  require_paths: