Skip to content

izumin5210/nrdgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nrdgraph

GoDoc license

Dgraph client instrumentation for New Relic.

Example

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...)

Releases

No releases published

Packages

No packages published

Languages