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

+2 -1
View File
@@ -13,6 +13,7 @@ import (
"github.com/samcharles93/archie-core/internal/domain/presence"
"github.com/samcharles93/archie-core/internal/infrastructure/rpctls"
"github.com/samcharles93/archie-core/internal/infrastructure/staterpc"
"github.com/samcharles93/archie-core/internal/infrastructure/telemetry"
)
// Client never accepts an identity, org or permission list from the harness.
@@ -53,7 +54,7 @@ func Dial(target string, id *rpctls.Identity) (*Client, func(), error) {
if err != nil {
return nil, nil, err
}
conn, err := grpc.NewClient(target, creds, grpc.WithUnaryInterceptor(staterpc.UnaryClientCredentialInterceptor(presence.Daemon, "")), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(messaging.MaxInboundAttachmentBytes+(1<<20))))
conn, err := grpc.NewClient(target, creds, telemetry.ClientOption(), grpc.WithUnaryInterceptor(staterpc.UnaryClientCredentialInterceptor(presence.Daemon, "")), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(messaging.MaxInboundAttachmentBytes+(1<<20))))
if err != nil {
return nil, nil, err
}