pprofiletest

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareProfile

func CompareProfile(expected, actual pprofile.Profile) error

func CompareProfileAttributeUnitSlice

func CompareProfileAttributeUnitSlice(expected, actual pprofile.AttributeUnitSlice) error

func CompareProfileFunctionSlice

func CompareProfileFunctionSlice(expected, actual pprofile.FunctionSlice) error

func CompareProfileLineSlice

func CompareProfileLineSlice(expected, actual pprofile.LineSlice) error

func CompareProfileLinkSlice

func CompareProfileLinkSlice(expected, actual pprofile.LinkSlice) error

func CompareProfileLocation

func CompareProfileLocation(expected, actual pprofile.Location) error

func CompareProfileLocationSlice

func CompareProfileLocationSlice(expected, actual pprofile.LocationSlice) error

func CompareProfileMappingSlice

func CompareProfileMappingSlice(expected, actual pprofile.MappingSlice) error

func CompareProfileSample

func CompareProfileSample(expected, actual pprofile.Sample) error

func CompareProfileSampleSlice

func CompareProfileSampleSlice(expected, actual pprofile.SampleSlice) error

func CompareProfileValueTypeSlice

func CompareProfileValueTypeSlice(expected, actual pprofile.ValueTypeSlice) error

func CompareProfiles

func CompareProfiles(expected, actual pprofile.Profiles, options ...CompareProfilesOption) error

CompareProfiles compares each part of two given Profiles and returns an error if they don't match. The error describes what didn't match.

func CompareResourceProfiles

func CompareResourceProfiles(expected, actual pprofile.ResourceProfiles) error

CompareResourceProfiles compares each part of two given ResourceProfiles and returns an error if they don't match. The error describes what didn't match.

func CompareScopeProfiles

func CompareScopeProfiles(expected, actual pprofile.ScopeProfiles) error

CompareScopeProfiles compares each part of two given ProfilesSlices and returns an error if they don't match. The error describes what didn't match.

Types

type CompareProfilesOption

type CompareProfilesOption interface {
	// contains filtered or unexported methods
}

CompareProfilesOption can be used to mutate expected and/or actual profiles before comparing.

func IgnoreProfileAttributeValue

func IgnoreProfileAttributeValue(attributeName string) CompareProfilesOption

IgnoreProfileAttributeValue is a CompareProfilesOption that sets the value of an attribute to empty bytes for every profile

func IgnoreProfileTimestampValues

func IgnoreProfileTimestampValues() CompareProfilesOption

IgnoreProfileTimestampValues is a CompareProfilesOption that sets the value of start timestamp and duration to empty bytes for every profile

func IgnoreProfilesOrder

func IgnoreProfilesOrder() CompareProfilesOption

IgnoreProfilesOrder is a CompareProfilesOption that ignores the order of profile records.

func IgnoreResourceAttributeValue

func IgnoreResourceAttributeValue(attributeName string) CompareProfilesOption

IgnoreResourceAttributeValue is a CompareProfilesOption that removes a resource attribute from all resources.

func IgnoreResourceProfilesOrder

func IgnoreResourceProfilesOrder() CompareProfilesOption

IgnoreResourceProfilesOrder is a CompareProfilesOption that ignores the order of resource traces/metrics/profiles.

func IgnoreScopeAttributeValue

func IgnoreScopeAttributeValue(attributeName string) CompareProfilesOption

IgnoreResourceAttributeValue is a CompareProfilesOption that removes a resource attribute from all resources.

func IgnoreScopeProfilesOrder

func IgnoreScopeProfilesOrder() CompareProfilesOption

IgnoreScopeProfilesOrder is a CompareProfilesOption that ignores the order of instrumentation scope traces/metrics/profiles.

Jump to

Keyboard shortcuts

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