Skip to content

Commit

Permalink
Merge pull request #289 from stripe/asf-bump-client-capacity
Browse files Browse the repository at this point in the history
Bump default client capacity to 64
  • Loading branch information
joshu-stripe authored Oct 18, 2017
2 parents c269f31 + 2c17c71 commit 6d28db8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion trace/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func NewClient(addrStr string, opts ...ClientParam) (*Client, error) {
}
params := cl.backend.params()
params.addr = addr
params.cap = 1
params.cap = DefaultCapacity
for _, opt := range opts {
if err = opt(cl); err != nil {
return nil, err
Expand All @@ -165,6 +165,10 @@ func NewClient(addrStr string, opts ...ClientParam) (*Client, error) {
// other goroutines that use the DefaultClient.
var DefaultClient *Client

// DefaultCapacity is the capacity of the span submission queue in a
// veneur client.
const DefaultCapacity = 64

// DefaultVeneurAddress is the address that a reasonable veneur should
// listen on. Currently it defaults to UDP port 8128.
const DefaultVeneurAddress string = "udp://127.0.0.1:8128"
Expand Down

0 comments on commit 6d28db8

Please sign in to comment.