An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.9% on proxy.golang.org
Top 2.2% dependent packages on proxy.golang.org
Top 1.5% dependent repos on proxy.golang.org
Top 1.7% forks on proxy.golang.org

proxy.golang.org : github.com/newrelic/go-agent/v3/integrations/nrnats

Package nrnats instruments https://github.com/nats-io/nats.go. This package can be used to simplify instrumenting NATS publishers and subscribers. Currently due to the nature of the NATS framework we are limited to two integration points: `StartPublishSegment` for publishers, and `SubWrapper` for subscribers. To generate an external segment for any method that publishes or responds to a NATS message, use the `StartPublishSegment` method. The resulting segment will also need to be ended. Example: Or: StartPublishSegment can be used with a NATS Streamming Connection as well (https://github.com/nats-io/stan.go). Use the `NatsConn()` method on the `stan.Conn` interface (https://godoc.org/github.com/nats-io/stan#Conn) to access the `nats.Conn` object. The `nrnats.SubWrapper` function can be used to wrap the function for `nats.Subscribe` (https://godoc.org/github.com/nats-io/go-nats#Conn.Subscribe or https://godoc.org/github.com/nats-io/go-nats#EncodedConn.Subscribe) and `nats.QueueSubscribe` (https://godoc.org/github.com/nats-io/go-nats#Conn.QueueSubscribe or https://godoc.org/github.com/nats-io/go-nats#EncodedConn.QueueSubscribe) If the `newrelic.Application` parameter is non-nil, it will create a `newrelic.Transaction` and end the transaction when the passed function is complete. Example: Full Publisher/Subscriber example: https://github.com/newrelic/go-agent/blob/master/v3/integrations/nrnats/examples/main.go

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/newrelic/go-agent/v3/integrations/nrnats
License: Apache-2.0
Latest release: almost 2 years ago
First release: over 5 years ago
Namespace: github.com/newrelic/go-agent/v3/integrations
Dependent packages: 5
Dependent repositories: 13
Stars: 692 on GitHub
Forks: 280 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago

    Loading...
    Readme
    Loading...