package
2.8.0+incompatible
Repository: https://github.com/pengsrc/jaeger-client-go.git
Documentation: pkg.go.dev

# Functions

GetJSON makes an HTTP call to the specified URL and parses the returned JSON into `out`.
HostIP tries to find an IP that can be used by other machines to reach this machine.
NewAgentClientUDP creates a client that sends spans to Jaeger Agent over UDP.
NewRand returns a rand.Rand that is threadsafe.
NewRateLimiter creates a new rate limiter based on leaky bucket algorithm, formulated in terms of a credits balance that is replenished every time CheckCredit() method is called (tick) by the amount proportional to the time elapsed since the last tick, up to max of creditsPerSecond.
PackIPAsUint32 packs an IPv4 as uint32.
ParseIPToUint32 converts a string ip (e.g.
ParsePort converts port number from string to uin16.
ReadJSON reads JSON from http.Response and parses it into `out`.
TimeToMicrosecondsSinceEpochInt64 converts Go time.Time to a long representing time since epoch in microseconds, which is used expected in the Jaeger spans encoded as Thrift.

# Constants

UDPPacketMaxLength is the max size of UDP packet we want to send, synced with jaeger-agent.

# Variables

ErrEmptyIP an error for empty ip strings.
ErrNotFourOctets an error for the wrong number of octets after splitting a string.
ErrNotHostColonPort an error for invalid host port string.

# Structs

AgentClientUDP is a UDP client to Jaeger agent that implements agent.Agent interface.

# Interfaces

RateLimiter is a filter used to check if a message that is worth itemCost units is within the rate limits.