Documentation
¶
Index ¶
- Constants
- Variables
- func Assert(cond bool, format string, args ...interface{})
- func GetAttribute(attrs []attribute.KeyValue, name string) attribute.Value
- func GetFreePort() (int, error)
- func GetServer(ctx context.Context, url string) (string, error)
- func GetSpanExporter() trace.SpanExporter
- func GetTestMetrics() (metricdata.ResourceMetrics, error)
- func GetTestSpans() *tracetest.SpanStubs
- func IsInTest() bool
- func ResetTestSpans()
- func VerifyDbAttributes(span tracetest.SpanStub, name, system, address, statement, operation string)
- func VerifyDbMetricsAttributes(attrs []attribute.KeyValue, dbSystem, operationName, serverAddress string)
- func VerifyHttpClientAttributes(span tracetest.SpanStub, ...)
- func VerifyHttpClientMetricsAttributes(attrs []attribute.KeyValue, ...)
- func VerifyHttpServerAttributes(span tracetest.SpanStub, ...)
- func VerifyHttpServerMetricsAttributes(attrs []attribute.KeyValue, ...)
- func VerifyLLMAttributes(span tracetest.SpanStub, name string, system string, model string)
- func VerifyLLMCommonAttributes(span tracetest.SpanStub, name string, system string)
- func VerifyRpcClientAttributes(span tracetest.SpanStub, name, system, service, method string)
- func VerifyRpcClientMetricsAttributes(attrs []attribute.KeyValue, method, service, system, serverAddr string)
- func VerifyRpcServerAttributes(span tracetest.SpanStub, name, system, service, method string)
- func VerifyRpcServerMetricsAttributes(attrs []attribute.KeyValue, method, service, system, serverAddr string)
- func WaitAndAssertMetrics(metricVerifiers map[string]func(metricdata.ResourceMetrics))
- func WaitAndAssertTraces(traceVerifiers func([]tracetest.SpanStubs), numTraces int)
Constants ¶
View Source
const IS_IN_TEST = "IN_OTEL_TEST"
Variables ¶
View Source
var ManualReader = metric.NewManualReader()
Functions ¶
func GetFreePort ¶
func GetSpanExporter ¶
func GetSpanExporter() trace.SpanExporter
func GetTestMetrics ¶
func GetTestMetrics() (metricdata.ResourceMetrics, error)
func GetTestSpans ¶
func ResetTestSpans ¶
func ResetTestSpans()
func VerifyDbAttributes ¶
func VerifyDbAttributes(span tracetest.SpanStub, name, system, address, statement, operation string)
VerifyDbAttributes TODO: make attribute name to semconv attribute
func VerifyLLMAttributes ¶
func WaitAndAssertMetrics ¶
func WaitAndAssertMetrics(metricVerifiers map[string]func(metricdata.ResourceMetrics))
func WaitAndAssertTraces ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.