https://github.com/izumin5210/nrdgraph
Dgraph client instrumentation for New Relic
https://github.com/izumin5210/nrdgraph
dgraph golang newrelic
Last synced: 7 months ago
JSON representation
Dgraph client instrumentation for New Relic
- Host: GitHub
- URL: https://github.com/izumin5210/nrdgraph
- Owner: izumin5210
- License: mit
- Created: 2018-01-28T05:48:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T02:20:31.000Z (about 7 years ago)
- Last Synced: 2025-08-14T03:31:16.320Z (9 months ago)
- Topics: dgraph, golang, newrelic
- Language: Go
- Homepage: https://godoc.org/github.com/izumin5210/nrdgraph
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nrdgraph
[](https://godoc.org/github.com/izumin5210/nrdgraph)
[](./LICENSE)
Dgraph client instrumentation for New Relic.
## Example
```go
addrs := []string{
"dgraph-1.example.com",
"dgraph-2.example.com",
"dgraph-3.example.com",
}
clients := make([]api.DgraphClient, len(addrs), len(addrs))
for i, addr := range addrs {
conn, _ := grpc.Dial(addr, grpc.WithInsecure())
clients[i] = nrdgraph.Wrap(api.NewDgraphClient(d), nrdgraph.WithHost(addr))
}
client := dgo.NewDgraphClient(clients...)
```