DRAFT: tooling for writing new integrations faster #6570
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
DRAFT DO NOT MERGE: PR just shows possible tooling examples / changes to instrumentations / plugins to create integrations faster.
New Ideas Added to dd-trace-js:
PR Also includes:
APM MCP Tooling (what was used to generate this integration), can be found here
Tooling Workflow
traceAsync
,traceSync
,traceCallback
, etc) and orchestrion config is outputteddatadog-plugin-[pkg]/test/app/sample-app.js
that labels what methods need to be implemented (pulls in APM data semantics by class of integration to list methods that should be required / optional by that type of integration, ie: database integration has aquery
function implemented in the app, optionally has aconnect
function added, which will then be traced later.)dd-apm-analyze
. These generated wrappers capture the runtime context available within that traced function, such asthis
andarguments
, and the shape of those objects (fields, class, etc). Outputs a json file of available context per wrapped method.arg[0]
maps todatabase.name
.Motivation
Plugin Checklist
Additional Notes