Skip to content

Commit

Permalink
Merge pull request #831 from gotd/fix/oteltg-span-name
Browse files Browse the repository at this point in the history
fix(oteltg): don't duplicate method id
  • Loading branch information
ernado authored Aug 1, 2022
2 parents 23647bc + 799ca09 commit c1bd06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (c *Client) Invoke(ctx context.Context, input bin.Encoder, output bin.Decod
} else {
attrs = append(attrs, attribute.String("tg.method.name", name))
}
spanName = fmt.Sprintf("Invoke: %s#%x", name, id)
spanName = fmt.Sprintf("Invoke: %s", name)
}
spanCtx, span := c.tracer.Start(ctx, spanName,
trace.WithAttributes(attrs...),
Expand Down

0 comments on commit c1bd06e

Please sign in to comment.