opentelemetry-instrumentation-trilogy 0.55.1 → 0.56.1

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: 8cc568f9e1a5d6a330ffddee8c6888fac1c7b1c84433a003cf68673d654e6008
4
- data.tar.gz: ccfa730942e2472d8ad4978ed229d6b1fc44a597ac74331bfe1e17be28fcd4a1
3
+ metadata.gz: 56f64c0afcc860c521eb74b481c8d088bbd19ea7d2e3cd08fd44e9be7f766734
4
+ data.tar.gz: 4e4a4e81f0a07e48835754a1285d010109a733ecd8e4318890c0a8bfb7250ea9
5
5
  SHA512:
6
- metadata.gz: e92928d645e72804e3dfc5d10069856585f0d48badf6a8dd2ecabf2c471012222b33d70bc16d247adeee6d0c98196ab53bda948e36aafd23ec898b5fd202050a
7
- data.tar.gz: 72f70ea92bf8f58c0cf767898362724ba6e9c1d73adcdec2a2ffb0ce0f84c6540880b8a9e359e43b06797514b5789f7b0d8db9f98df107ce5db0a655acde46b0
6
+ metadata.gz: 1d82d7f98fa640d11363b35cece353e6a5bfbfa48970ccc2e74be17653a05438d7ed4ecce02423c7c99abfb825748b35068489da4a7d84c3fadd98be635e1434
7
+ data.tar.gz: f4ada30e90f972b552440b5e1c3f303c46b8845f4a0299fa7249d95749212312e6764737045f61be587778a5810e088a1d4ca85433155705b82ea9c254384a80
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History: opentelemetry-instrumentation-trilogy
2
2
 
3
+ ### v0.56.1 / 2023-06-05
4
+
5
+ * FIXED: Base config options
6
+
7
+ ### v0.56.0 / 2023-06-02
8
+
9
+ * BREAKING CHANGE: Separate logical MySQL host from connected host
10
+
11
+ * ADDED: Separate logical MySQL host from connected host
12
+
3
13
  ### v0.55.1 / 2023-06-01
4
14
 
5
15
  * FIXED: Regex non-match with obfuscation limit (issue #486)
@@ -48,11 +48,6 @@ module OpenTelemetry
48
48
 
49
49
  FULL_SQL_REGEXP = Regexp.union(MYSQL_COMPONENTS.map { |component| COMPONENTS_REGEX_MAP[component] })
50
50
 
51
- def initialize(args)
52
- @_otel_net_peer_name = args[:host]
53
- super
54
- end
55
-
56
51
  def query(sql)
57
52
  tracer.in_span(
58
53
  database_span_name(sql),
@@ -68,11 +63,12 @@ module OpenTelemetry
68
63
  def client_attributes(sql)
69
64
  attributes = {
70
65
  ::OpenTelemetry::SemanticConventions::Trace::DB_SYSTEM => 'mysql',
71
- ::OpenTelemetry::SemanticConventions::Trace::NET_PEER_NAME => net_peer_name
66
+ ::OpenTelemetry::SemanticConventions::Trace::NET_PEER_NAME => connection_options.fetch(:host, 'unknown sock')
72
67
  }
73
68
 
74
69
  attributes[::OpenTelemetry::SemanticConventions::Trace::DB_NAME] = database_name if database_name
75
70
  attributes[::OpenTelemetry::SemanticConventions::Trace::PEER_SERVICE] = config[:peer_service] unless config[:peer_service].nil?
71
+ attributes['db.mysql.instance.address'] = @connected_host if defined?(@connected_host)
76
72
 
77
73
  case config[:db_statement]
78
74
  when :obfuscate
@@ -135,16 +131,6 @@ module OpenTelemetry
135
131
  connection_options[:database]
136
132
  end
137
133
 
138
- def net_peer_name
139
- if defined?(@connected_host)
140
- @connected_host
141
- elsif @_otel_net_peer_name
142
- @_otel_net_peer_name
143
- else
144
- 'unknown sock'
145
- end
146
- end
147
-
148
134
  def tracer
149
135
  Trilogy::Instrumentation.instance.tracer
150
136
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Trilogy
10
- VERSION = '0.55.1'
10
+ VERSION = '0.56.1'
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-trilogy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.55.1
4
+ version: 0.56.1
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-01 00:00:00.000000000 Z
11
+ date: 2023-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.22.0
33
+ version: 0.22.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.22.0
40
+ version: 0.22.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opentelemetry-semantic_conventions
43
43
  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.55.1/file/CHANGELOG.md
278
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.56.1/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.55.1
281
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.56.1
282
282
  post_install_message:
283
283
  rdoc_options: []
284
284
  require_paths: