exportertest

package module
v0.156.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 26 Imported by: 10

Documentation

Overview

Copyright The OpenTelemetry Authors SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var NopType = component.MustNewType("nop")

Functions

func CheckConsumeContract

func CheckConsumeContract(params CheckConsumeContractParams)

func NewNopFactory

func NewNopFactory() exporter.Factory

NewNopFactory returns an exporter.Factory that constructs nop exporters.

func NewNopSettings

func NewNopSettings(typ component.Type) exporter.Settings

NewNopSettings returns a new nop settings for Create* functions with the given type.

Types

type CheckConsumeContractParams

type CheckConsumeContractParams struct {
	T                    *testing.T
	NumberOfTestElements int
	Signal               pipeline.Signal
	// ExporterFactory to create an exporter to be tested.
	ExporterFactory exporter.Factory
	ExporterConfig  component.Config
	// ReceiverFactory to create a mock receiver.
	ReceiverFactory receiver.Factory
	ReceiverConfig  component.Config
}

Jump to

Keyboard shortcuts

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