Skip to content

Commit

Permalink
fixup! metrics: Basic Atlas integration
Browse files Browse the repository at this point in the history
  • Loading branch information
codebien committed Jul 27, 2022
1 parent d7225a4 commit d55c5d3
Show file tree
Hide file tree
Showing 7 changed files with 257 additions and 21 deletions.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ require (
gopkg.in/yaml.v3 v3.0.1
)

require github.com/mstoykov/atlas v0.0.0-20220727131014-23cc720eb639

require (
github.com/andybalholm/cascadia v1.3.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/mccutchen/go-httpbin v1.1.2-0.20190116014521-c5cb2f4802fa h1:lx8ZnNPwjkXSzOROz0cg69RlErRXs+L3eDkggASWKLo=
github.com/mccutchen/go-httpbin v1.1.2-0.20190116014521-c5cb2f4802fa/go.mod h1:fhpOYavp5g2K74XDl/ao2y4KvhqVtKlkg1e+0UaQv7I=
github.com/mstoykov/atlas v0.0.0-20220727131014-23cc720eb639 h1:XMAwXwr7ZJcBhhzLWB2LHHVO028vXuxUeE65iRz1Myw=
github.com/mstoykov/atlas v0.0.0-20220727131014-23cc720eb639/go.mod h1:9vRHVuLCjoFfE3GT06X0spdOAO+Zzo4AMjdIwUHBvAk=
github.com/mstoykov/envconfig v1.4.1-0.20220114105314-765c6d8c76f1 h1:94EkGmhXrVUEal+uLwFUf4fMXPhZpM5tYxuIsxrCCbI=
github.com/mstoykov/envconfig v1.4.1-0.20220114105314-765c6d8c76f1/go.mod h1:vk/d9jpexY2Z9Bb0uB4Ndesss1Sr0Z9ZiGUrg5o9VGk=
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d h1:VhgPp6v9qf9Agr/56bj7Y/xa04UccTW04VP0Qed4vnQ=
Expand Down
2 changes: 1 addition & 1 deletion metrics/tagindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (tg *TagMap) Delete(k string) {
tg.mutex.Lock()
defer tg.mutex.Unlock()
}
// tg.tags = tg.tags.Delete(k)
tg.tags = tg.tags.DeleteKey(k)
}

// Map returns a map of string pairs with the items in the TagMap
Expand Down
201 changes: 201 additions & 0 deletions vendor/github.com/mstoykov/atlas/LICENSE

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

15 changes: 15 additions & 0 deletions vendor/github.com/mstoykov/atlas/README.md

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

53 changes: 33 additions & 20 deletions vendor/github.com/mstoykov/atlas/atlas.go

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

3 changes: 3 additions & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ github.com/mattn/go-isatty
github.com/mccutchen/go-httpbin/httpbin
github.com/mccutchen/go-httpbin/httpbin/assets
github.com/mccutchen/go-httpbin/httpbin/digest
# github.com/mstoykov/atlas v0.0.0-20220727131014-23cc720eb639
## explicit; go 1.18
github.com/mstoykov/atlas
# github.com/mstoykov/envconfig v1.4.1-0.20220114105314-765c6d8c76f1
## explicit
github.com/mstoykov/envconfig
Expand Down

0 comments on commit d55c5d3

Please sign in to comment.