Documentation
¶
Overview ¶
Package otelstack provides a full OTEL collector and receiver clients conveniently contained within testcontainers. It removes the hassle of managing inter-container communication, has built in querying for validating your tests, and uses lightweight services (seq and Jaeger) to keep start time low.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stack ¶ added in v1.0.4
type Stack struct {
Collector collector.Collector
Jaeger jaeger.Jaeger
Seq seq.Seq
Prometheus prometheus.Prometheus
// contains filtered or unexported fields
}
Stack holds structs containing to all the testcontainers.
func New ¶
New creates a new Stack and populates it with child container structs. Setting the services toggles will disables or enable the respective receiver containers.
func (*Stack) SetTestEnvGRPC ¶ added in v1.0.4
SetTestEnvGRPC sets the environment variableOTEL_EXPORTER_OTLP_ENDPOINT to the gRPC endpoint.
func (*Stack) SetTestEnvHTTP ¶ added in v1.0.4
SetTestEnvHTTP sets the environment variableOTEL_EXPORTER_OTLP_ENDPOINT to the HTTP endpoint
Directories
¶
| Path | Synopsis |
|---|---|
|
Package collector holds the resources needed to start an OTEL collector testcontainer
|
Package collector holds the resources needed to start an OTEL collector testcontainer |
|
Package jaeger holds the resources needed to start a Jaeger testcontainer container.
|
Package jaeger holds the resources needed to start a Jaeger testcontainer container. |
|
Package prometheus holds the resources needed to start a Prometheus testcontainer container.
|
Package prometheus holds the resources needed to start a Prometheus testcontainer container. |
|
Package request provides functions for making HTTP requests and unmarshaling the response body into a struct.
|
Package request provides functions for making HTTP requests and unmarshaling the response body into a struct. |
|
Package seq holds the resources needed to start a Seq testcontainer.
|
Package seq holds the resources needed to start a Seq testcontainer. |