Documentation
¶
Index ¶
- func AssertAttributeNotInSet(t *testing.T, set attribute.Set, attr attribute.KeyValue)
- func GetMetricByName(scopeMetric *metricdata.ScopeMetrics, name string) *metricdata.Metrics
- func GetMetricScopeByName(metrics []metricdata.ScopeMetrics, name string) *metricdata.ScopeMetrics
- func NewContextWithCancel(t *testing.T) context.Context
- func RequireSpanWithName(t *testing.T, exporter *tracetest2.InMemoryExporter, name string) trace.ReadOnlySpan
- func ToPtr[T any](v T) *T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAttributeNotInSet ¶
func GetMetricByName ¶
func GetMetricByName(scopeMetric *metricdata.ScopeMetrics, name string) *metricdata.Metrics
func GetMetricScopeByName ¶
func GetMetricScopeByName(metrics []metricdata.ScopeMetrics, name string) *metricdata.ScopeMetrics
func NewContextWithCancel ¶
NewContextWithCancel creates a new context with a cancel function that is called when the test is done.
func RequireSpanWithName ¶
func RequireSpanWithName(t *testing.T, exporter *tracetest2.InMemoryExporter, name string) trace.ReadOnlySpan
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.