Documentation
¶
Overview ¶
Package jaeger holds the resources needed to start a Jaeger testcontainer container.
Package jaeger holds the resources needed to start a Jaeger testcontainer container.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Jaeger ¶
type Jaeger struct {
Ports map[int]nat.Port
Network *testcontainers.DockerNetwork
Name string
}
Jaeger hold the testcontainer, ports and network used by Jaeger. If instantiating yourself, be sure to populate Jaeger.Network, otherwise a new network will be generated.
func (*Jaeger) GetTraces ¶
func (j *Jaeger) GetTraces(expectedTraces int, maxRetries int, service string) (traces Traces, err error)
GetTraces takes in a service names and returns the last n traces corresponding to that service. There is a retry mechanism implemented; `GetTraces` will keep fetching every 2 seconds, for a maximum of `maxRetries` times, until Jaeger returns `expectedTraces` number of traces.
Click to show internal directories.
Click to hide internal directories.