Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultAddr = "127.0.0.1:4318" DefaultMaxBody = 8 << 20 DefaultMaxInFlight = 16 )
Variables ¶
View Source
var ErrFull = errors.New("buffer full")
ErrFull is wrapped by a sink to signal backpressure.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
New validates the bind address and binds the listener, so a bad address fails before serving.
type Sinks ¶
type Sinks struct {
Logs LogsSink
Traces TracesSink
}
Sinks holds one sink per signal; a nil sink makes that signal's route return 404.
Click to show internal directories.
Click to hide internal directories.