Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a Tracing testing server that invokes a function every time a span is received.
func NewServer ¶
NewServer creates an OTLP-accepting server that calls a function when a trace is received. This is primarily useful for testing.
func NewServerWithRandomPort ¶
NewServerWithRandomPort calls NewServer with a random port >49152 and <65535. It will try up to five times before failing.
Click to show internal directories.
Click to hide internal directories.