feat(servicekit): OpenTelemetry tracer provider and RPC propagation

This commit is contained in:
sam committed 2026-10-25 23:11:03 +11:00
1 parent b30cb0b1db
commit bc41094b14
23 files changed
+288 -29

No files matched your search

@@ -16,6 +16,7 @@ import (
pb "github.com/samcharles93/archie-core/internal/contracts/messaging/v1"
"github.com/samcharles93/archie-core/internal/domain/presence"
"github.com/samcharles93/archie-core/internal/infrastructure/rpctls"
"github.com/samcharles93/archie-core/internal/infrastructure/telemetry"
"github.com/samcharles93/archie-core/internal/logging"
)
@@ -79,7 +80,7 @@ func Dial(target string, id *rpctls.Identity) (*Client, func(), error) {
if err != nil {
return nil, nil, fmt.Errorf("messaging: %w", err)
}
conn, err := grpc.NewClient(target, creds)
conn, err := grpc.NewClient(target, creds, telemetry.ClientOption())
if err != nil {
return nil, nil, fmt.Errorf("create messaging client: %w", err)
}