Skip to content

Commit

Permalink
fix: Nil value for db.name attribute (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlaurin authored May 7, 2021
1 parent 801cae1 commit 94b4207
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
26 changes: 15 additions & 11 deletions instrumentation/mysql2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# Release History: opentelemetry-instrumentation-mysql2

### Unreleased

* Fix: Nil value for db.name attribute #744

### v0.17.0 / 2021-04-22

* (No significant changes)

### v0.16.0 / 2021-03-17

* FIXED: Update DB semantic conventions
* FIXED: Example scripts now reference local common lib
* FIXED: Update DB semantic conventions
* FIXED: Example scripts now reference local common lib
* ADDED: Configurable obfuscation of sql in mysql2 instrumentation to avoid logging sensitive data

### v0.15.0 / 2021-02-18

* ADDED: Add instrumentation config validation
* ADDED: Add instrumentation config validation

### v0.14.0 / 2021-02-03

Expand All @@ -28,32 +32,32 @@

### v0.11.0 / 2020-12-11

* ADDED: Add peer service config to mysql
* FIXED: Copyright comments to not reference year
* ADDED: Add peer service config to mysql
* FIXED: Copyright comments to not reference year

### v0.10.1 / 2020-12-09

* FIXED: Semantic conventions db.type -> db.system
* FIXED: Semantic conventions db.type -> db.system

### v0.10.0 / 2020-12-03

* (No significant changes)

### v0.9.0 / 2020-11-27

* BREAKING CHANGE: Add timeout for force_flush and shutdown
* BREAKING CHANGE: Add timeout for force_flush and shutdown

* ADDED: Add timeout for force_flush and shutdown
* ADDED: Add timeout for force_flush and shutdown

### v0.8.0 / 2020-10-27

* BREAKING CHANGE: Remove 'canonical' from status codes
* BREAKING CHANGE: Remove 'canonical' from status codes

* FIXED: Remove 'canonical' from status codes
* FIXED: Remove 'canonical' from status codes

### v0.7.0 / 2020-10-07

* DOCS: Standardize toplevel docs structure and readme
* DOCS: Standardize toplevel docs structure and readme

### v0.6.0 / 2020-09-10

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ def client_attributes

attributes = {
'db.system' => 'mysql',
'db.name' => database_name,
'net.peer.name' => host,
'net.peer.port' => port
}
attributes['db.name'] = database_name if database_name
attributes['peer.service'] = config[:peer_service] if config[:peer_service]
attributes
end
Expand Down

0 comments on commit 94b4207

Please sign in to comment.