-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce service naming framework (#2941)
* Add interaction with the `DD_TRACE_SPAN_ATTRIBUTE_SCHEMA` environment variable * Provide the building blocks for 2 versions of an service and operation naming schema: * `v0` is the current version, i.e. a representation of the existing state of the plugin. One could checkout the commit with the introduction of this version, and have unchanged tests still pass. * `v1` is the new naming schema, made consistent across all tracers. * Introduce a testing harness for easy tests of `v0` _and_ `v1` naming * Apply this versioned naming for all messaging integrations - `rhea`, `amqp(10|lib)`, `kafkajs`, `google-cloud-pubsub`
- Loading branch information
Showing
44 changed files
with
810 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const { resolveNaming } = require('../../dd-trace/test/plugins/helpers') | ||
|
||
module.exports = resolveNaming({ | ||
send: { | ||
v0: { | ||
opName: 'amqp.send', | ||
serviceName: 'test-amqp' | ||
}, | ||
v1: { | ||
opName: 'amqp.send', | ||
serviceName: 'test' | ||
} | ||
}, | ||
receive: { | ||
v0: { | ||
opName: 'amqp.receive', | ||
serviceName: 'test-amqp' | ||
}, | ||
v1: { | ||
opName: 'amqp.process', | ||
serviceName: 'test' | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const { resolveNaming } = require('../../dd-trace/test/plugins/helpers') | ||
|
||
module.exports = resolveNaming({ | ||
send: { | ||
v0: { | ||
opName: 'amqp.command', | ||
serviceName: 'test-amqp' | ||
}, | ||
v1: { | ||
opName: 'amqp.send', | ||
serviceName: 'test' | ||
} | ||
}, | ||
receive: { | ||
v0: { | ||
opName: 'amqp.command', | ||
serviceName: 'test-amqp' | ||
}, | ||
v1: { | ||
opName: 'amqp.process', | ||
serviceName: 'test' | ||
} | ||
}, | ||
controlPlane: { | ||
v0: { | ||
opName: 'amqp.command', | ||
serviceName: 'test-amqp' | ||
}, | ||
v1: { | ||
opName: 'amqp.command', | ||
serviceName: 'test' | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.