config

package
v1.4.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package config provides observability configuration for EventStore testing.

This package contains factory functions for setting up OpenTelemetry-compatible observability providers (metrics, tracing, and structured logging) needed for testing EventStore's observability features.

The configurations create test-appropriate providers that can be used to verify that EventStore operations properly emit metrics, traces, and logs without requiring external observability infrastructure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JaegerEndpoint

func JaegerEndpoint() string

JaegerEndpoint returns the Jaeger OTLP gRPC endpoint for testing the observability stack.

func OTELCollectorEndpoint

func OTELCollectorEndpoint() string

OTELCollectorEndpoint returns the OpenTelemetry Collector gRPC endpoint for test observability stack.

Types

type ObservabilityProviders

type ObservabilityProviders struct {
	TracerProvider *trace.TracerProvider
	MeterProvider  *metric.MeterProvider
	Resource       *resource.Resource
}

ObservabilityProviders holds the OpenTelemetry providers for testing.

func NewObservabilityConfig

func NewObservabilityConfig() (*ObservabilityProviders, error)

NewObservabilityConfig creates OpenTelemetry providers configured for the test observability stack. This function sets up real OpenTelemetry providers that send telemetry to the observability backends running in Docker containers (Prometheus, Jaeger, OTEL Collector).

func (*ObservabilityProviders) Shutdown

func (p *ObservabilityProviders) Shutdown() error

Shutdown gracefully shuts down the OpenTelemetry providers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL