feat: propagate data from http to go-micro, add missing middleware

Middleware in the webdav service was missing. Telemetry for webdav was
relying on the otelchi middleware that was added afterwards and removed
in the previous commit. New (otelhttp) telemetry has been added to the
middlewares for the service.

Incoming telemetry data from HTTP (captured with otelhttp) with also be
stored so the telemetry for go-micro's requests can be picked up and
propagate properly.
This commit is contained in:
Juan Pablo Villafáñez
2025-07-30 11:23:16 +02:00
parent 01a9713b52
commit 0aa20cbf05
2 changed files with 36 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ func NewService(opts ...Option) (Service, error) {
// register method with chi before any routing is set up
chi.RegisterMethod("REPORT")
m.Use(options.Middleware...)
m.Route(options.Config.HTTP.Root, func(r chi.Router) {
if !svc.config.DisablePreviews {