feat(servicekit): OpenTelemetry tracer provider and RPC propagation
This commit is contained in:
1 parent
b30cb0b1db
commit
bc41094b14
23 files changed
+288
-29
No files matched your search
@@ -10,6 +10,7 @@ import (
|
||||
"github.com/samcharles93/archie-core/internal/domain/presence"
|
||||
"github.com/samcharles93/archie-core/internal/infrastructure/rpcidentity"
|
||||
"github.com/samcharles93/archie-core/internal/infrastructure/rpctls"
|
||||
"github.com/samcharles93/archie-core/internal/infrastructure/telemetry"
|
||||
)
|
||||
|
||||
type Client struct{ rpc pb.DaemonServiceClient }
|
||||
@@ -19,7 +20,7 @@ func Dial(target string, id *rpctls.Identity) (*Client, func(), error) {
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
conn, err := grpc.NewClient(target, creds)
|
||||
conn, err := grpc.NewClient(target, creds, telemetry.ClientOption())
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user