Skip to content

Commit

Permalink
fix wrong name for memcached.command tag (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
rochdev authored Nov 7, 2018
1 parent 9476ac8 commit 718d399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/memcached.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function wrapQueryCompiler (original, client, server, span) {

span.addTags({
'resource.name': query.type,
'memcached.query': query.command
'memcached.command': query.command
})

addHost(span, client, server, query)
Expand Down
2 changes: 1 addition & 1 deletion test/plugins/memcached.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Plugin', () => {
expect(traces[0][0].meta).to.have.property('span.kind', 'client')
expect(traces[0][0].meta).to.have.property('out.host', 'localhost')
expect(traces[0][0].meta).to.have.property('out.port', '11211')
expect(traces[0][0].meta).to.have.property('memcached.query', 'get test')
expect(traces[0][0].meta).to.have.property('memcached.command', 'get test')
})
.then(done)
.catch(done)
Expand Down

0 comments on commit 718d399

Please sign in to comment.