Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Add uuid package to glide
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac Hier <ihier@uber.com>
  • Loading branch information
Isaac Hier committed Mar 26, 2018
1 parent 91ad60d commit 78bc99d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ dist: trusty

matrix:
include:
- go: 1.8
- go: 1.7
env:
- TESTS=true
- COVERAGE=true
- go: 1.8
- go: 1.7
env:
- CROSSDOCK=true
- go: 1.8
- go: 1.7
env:
- TESTS=true
- USE_DEP=true
Expand Down
6 changes: 3 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import:
- metrics
- package: github.com/pkg/errors
version: ~0.8.0
- package: github.com/satori/go.uuid
version: ^1.2.0
testImport:
- package: github.com/stretchr/testify
subpackages:
Expand Down
7 changes: 2 additions & 5 deletions tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,8 @@ func NewTracer(
} else {
t.logger.Error("Unable to determine this host's IP address: " + err.Error())
}
if clientID, err := uuid.NewV4(); err == nil {
t.tags = append(t.tags, Tag{key: TracerClientIDTagKey, value: clientID.String()})
} else {
t.logger.Error("Unable to generate new UUID V4: " + err.Error())
}
clientID := uuid.NewV4()
t.tags = append(t.tags, Tag{key: TracerClientIDTagKey, value: clientID.String()})

if t.options.gen128Bit {
if t.options.highTraceIDGenerator == nil {
Expand Down

0 comments on commit 78bc99d

Please sign in to comment.