Add tracing to more places in userlog.

This passes the treaceprovider to more places where it belongs
and also adds tracing to the event processing.
This commit is contained in:
Daniël Franke
2023-08-25 10:39:47 +02:00
parent 0eb4b5dc56
commit 7a1e8f1f11
4 changed files with 96 additions and 89 deletions
+2 -2
View File
@@ -19,8 +19,7 @@ import (
)
// Service is the service interface
type Service interface {
}
type Service interface{}
// Server initializes the http service and server.
func Server(opts ...Option) (http.Service, error) {
@@ -90,6 +89,7 @@ func Server(opts ...Option) (http.Service, error) {
svc.ValueClient(options.ValueClient),
svc.RoleClient(options.RoleClient),
svc.RegisteredEvents(options.RegisteredEvents),
svc.TraceProvider(options.TracerProvider),
)
if err != nil {
return http.Service{}, err