The reviewed source matches dd-trace's stated APM tracing purpose. The flagged esbuild code injects repository metadata for the tracer, and the tracer gates its use and removes sensitive information from repository URLs.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
The tracer loads when the package entry point is imported; git metadata injection occurs when the esbuild integration is used.
Impact
The reviewed code supports tracing metadata collection and does not show an attack impact.
Mechanism
The bundler reads git metadata and embeds it for the tracer's git-metadata feature. No unrelated collector or concealed execution path was identified.