Skip to content

Commit

Permalink
add sdk: prefix to trace spans
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-asher committed Feb 5, 2024
1 parent 3ac93ab commit f8a16c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/rpc/shiroclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ func (c *rpcShiroClient) Init(ctx context.Context, phylum string, configs ...typ

// Call implements the ShiroClient interface.
func (c *rpcShiroClient) Call(ctx context.Context, method string, configs ...types.Config) (types.ShiroResponse, error) {
ctx, span := c.tracer.Start(ctx, "Call")
ctx, span := c.tracer.Start(ctx, "sdk:Call")
defer span.End()
opt, err := c.applyConfigs(configs...)
if err != nil {
Expand Down Expand Up @@ -570,7 +570,7 @@ func (c *rpcShiroClient) Call(ctx context.Context, method string, configs ...typ

// QueryInfo implements the ShiroClient interface.
func (c *rpcShiroClient) QueryInfo(ctx context.Context, configs ...types.Config) (uint64, error) {
ctx, span := c.tracer.Start(ctx, "QueryInfo")
ctx, span := c.tracer.Start(ctx, "sdk:QueryInfo")
defer span.End()
opt, err := c.applyConfigs(configs...)
if err != nil {
Expand Down Expand Up @@ -608,7 +608,7 @@ func (c *rpcShiroClient) QueryInfo(ctx context.Context, configs ...types.Config)

// QueryBlock implements the ShiroClient interface.
func (c *rpcShiroClient) QueryBlock(ctx context.Context, blockNumber uint64, configs ...types.Config) (types.Block, error) {
ctx, span := c.tracer.Start(ctx, "QueryBlock")
ctx, span := c.tracer.Start(ctx, "sdk:QueryBlock")
defer span.End()
opt, err := c.applyConfigs(configs...)
if err != nil {
Expand Down

0 comments on commit f8a16c4

Please sign in to comment.