feat(trace): migrate dd-trace-go v1 to v2 (#7466)

- Upgrade dd-trace-go dependency to v2.2.2
- Separate Zipkin and DataDog code paths for better maintainability
- Add proper tracer shutdown through OnShutdown()
- Replace deprecated opentracer.New() with direct tracer.Start()
- Added tests

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
Ville Vesilehto
2025-08-21 02:00:21 +03:00
committed by GitHub
parent 43d968331e
commit 2b273d48ab
5 changed files with 242 additions and 36 deletions

View File

@@ -25,6 +25,7 @@ func setup(c *caddy.Controller) error {
})
c.OnStartup(t.OnStartup)
c.OnShutdown(t.OnShutdown)
return nil
}