opentelemetry-instrumentation-trilogy 0.56.1 → 0.56.2

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: 56f64c0afcc860c521eb74b481c8d088bbd19ea7d2e3cd08fd44e9be7f766734
4
- data.tar.gz: 4e4a4e81f0a07e48835754a1285d010109a733ecd8e4318890c0a8bfb7250ea9
3
+ metadata.gz: 629aab2e80bded0180191360f3ce7f39f32aa71e614e43133316d767d8d982e5
4
+ data.tar.gz: 9ad84c512c2aa3f36db0cfeabd600eb5e53247393f24bba9d87f20bac46d4896
5
5
  SHA512:
6
- metadata.gz: 1d82d7f98fa640d11363b35cece353e6a5bfbfa48970ccc2e74be17653a05438d7ed4ecce02423c7c99abfb825748b35068489da4a7d84c3fadd98be635e1434
7
- data.tar.gz: f4ada30e90f972b552440b5e1c3f303c46b8845f4a0299fa7249d95749212312e6764737045f61be587778a5810e088a1d4ca85433155705b82ea9c254384a80
6
+ metadata.gz: f5259b1255a5a250812fec2f0a54e262cc82c399d7a43b530b26e3661cd141289be4bffcfd82b745968c97fec1512e2fb22b27e70629124bcc49951047e8fb04
7
+ data.tar.gz: 7088723e82f52bb468e2edabfabc3746f1929ea6bbb1ee13f337135516efb64a2b0a0ec97dd400a0218f55d2a1b469245979052b4838a06475bf7cb8ecb9000e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-trilogy
2
2
 
3
+ ### v0.56.2 / 2023-07-14
4
+
5
+ * ADDED: `db.user` attribute (recommended connection-level attribute)
6
+
3
7
  ### v0.56.1 / 2023-06-05
4
8
 
5
9
  * FIXED: Base config options
@@ -67,6 +67,7 @@ module OpenTelemetry
67
67
  }
68
68
 
69
69
  attributes[::OpenTelemetry::SemanticConventions::Trace::DB_NAME] = database_name if database_name
70
+ attributes[::OpenTelemetry::SemanticConventions::Trace::DB_USER] = database_user if database_user
70
71
  attributes[::OpenTelemetry::SemanticConventions::Trace::PEER_SERVICE] = config[:peer_service] unless config[:peer_service].nil?
71
72
  attributes['db.mysql.instance.address'] = @connected_host if defined?(@connected_host)
72
73
 
@@ -131,6 +132,10 @@ module OpenTelemetry
131
132
  connection_options[:database]
132
133
  end
133
134
 
135
+ def database_user
136
+ connection_options[:username]
137
+ end
138
+
134
139
  def tracer
135
140
  Trilogy::Instrumentation.instance.tracer
136
141
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Trilogy
10
- VERSION = '0.56.1'
10
+ VERSION = '0.56.2'
11
11
  end
12
12
  end
13
13
  end
@@ -54,5 +54,5 @@ module OpenTelemetry
54
54
  end
55
55
  end
56
56
 
57
- require_relative './trilogy/instrumentation'
58
- require_relative './trilogy/version'
57
+ require_relative 'trilogy/instrumentation'
58
+ require_relative 'trilogy/version'
@@ -16,4 +16,4 @@ module OpenTelemetry
16
16
  end
17
17
  end
18
18
 
19
- require_relative './instrumentation/trilogy'
19
+ require_relative 'instrumentation/trilogy'
@@ -5,4 +5,4 @@
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
7
  require 'opentelemetry-semantic_conventions'
8
- require_relative './opentelemetry/instrumentation'
8
+ require_relative 'opentelemetry/instrumentation'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-trilogy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.56.1
4
+ version: 0.56.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 1.50.2
187
+ version: 1.54.1
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 1.50.2
194
+ version: 1.54.1
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -275,10 +275,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
275
275
  licenses:
276
276
  - Apache-2.0
277
277
  metadata:
278
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.56.1/file/CHANGELOG.md
278
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.56.2/file/CHANGELOG.md
279
279
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/trilogy
280
280
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
281
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.56.1
281
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.56.2
282
282
  post_install_message:
283
283
  rdoc_options: []
284
284
  require_paths: