exportertest

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 24 Imported by: 9

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConsumeContract added in v0.89.0

func CheckConsumeContract(params CheckConsumeContractParams)

func NewNopBuilder

func NewNopBuilder() *exporter.Builder

NewNopBuilder returns an exporter.Builder that constructs nop receivers.

func NewNopCreateSettings

func NewNopCreateSettings() exporter.CreateSettings

NewNopCreateSettings returns a new nop settings for Create*Exporter functions.

func NewNopFactory

func NewNopFactory() exporter.Factory

NewNopFactory returns an exporter.Factory that constructs nop exporters.

Types

type CheckConsumeContractParams added in v0.89.0

type CheckConsumeContractParams struct {
	T                    *testing.T
	NumberOfTestElements int
	// DataType to test for.
	DataType component.DataType
	// 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