https://github.com/sagikazarmark/ocmux
Gorilla Mux integration for Open Census
https://github.com/sagikazarmark/ocmux
gorilla-mux opencensus
Last synced: 7 months ago
JSON representation
Gorilla Mux integration for Open Census
- Host: GitHub
- URL: https://github.com/sagikazarmark/ocmux
- Owner: sagikazarmark
- License: mit
- Created: 2019-03-19T10:09:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-03T20:19:09.000Z (about 6 years ago)
- Last Synced: 2025-03-06T18:52:47.203Z (7 months ago)
- Topics: gorilla-mux, opencensus
- Language: Makefile
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Gorilla Mux integration for Open Census
[](https://circleci.com/gh/sagikazarmark/ocmux)
[](https://goreportcard.com/report/github.com/sagikazarmark/ocmux)
[](https://golangci.com/r/github.com/sagikazarmark/ocmux)
[](https://github.com/logur/logur)
[](https://godoc.org/github.com/sagikazarmark/ocmux)## Installation
```bash
$ go get github.com/sagikazarmark/ocmux
```## Usage
```go
package mainimport (
"github.com/gorilla/mux"
"github.com/sagikazarmark/ocmux"
)func main() {
router := mux.NewRouter()
router.Use(ocmux.Middleware())
}
```## Attribution
Based on the work of [@basvanbeek](https://github.com/basvanbeek): https://github.com/basvanbeek/opencensus-gorilla_mux-example
Removed some Zipkin specific code, added a few features.
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.