Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wconti27 committed Apr 25, 2024
1 parent a830f05 commit 5ec1cb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/dd-trace/src/plugins/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ class DatabasePlugin extends StoragePlugin {
this.encodingServiceTags('dde', 'encodedDde', this.tracer._env)
this.encodingServiceTags('ddps', 'encodedDdps', this.tracer._service)
this.encodingServiceTags('ddpv', 'encodedDdpv', this.tracer._version)
if (span._spanContext._tags['db.name']) {
this.encodingServiceTags('ddh', 'encodedDdh', this.tracer._version)
}
if (span._spanContext._tags['out.host']) {
this.encodingServiceTags('dddb', 'encodedDddb', this.tracer._version)
this.encodingServiceTags('ddh', 'encodedDdh', span._spanContext._tags['out.host'])
}
if (span._spanContext._tags['db.name']) {
this.encodingServiceTags('dddb', 'encodedDddb', span._spanContext._tags['db.name'])
}

const { encodedDddb, encodedDddbs, encodedDde, encodedDdh, encodedDdps, encodedDdpv } = this.serviceTags
Expand Down

0 comments on commit 5ec1cb8

Please sign in to comment.