Documentation ¶
Index ¶
- func CompareProfile(expected, actual pprofile.Profile) error
- func CompareProfileAttributeUnitSlice(expected, actual pprofile.AttributeUnitSlice) error
- func CompareProfileFunctionSlice(expected, actual pprofile.FunctionSlice) error
- func CompareProfileLineSlice(expected, actual pprofile.LineSlice) error
- func CompareProfileLinkSlice(expected, actual pprofile.LinkSlice) error
- func CompareProfileLocation(expected, actual pprofile.Location) error
- func CompareProfileLocationSlice(expected, actual pprofile.LocationSlice) error
- func CompareProfileMappingSlice(expected, actual pprofile.MappingSlice) error
- func CompareProfileSample(expected, actual pprofile.Sample) error
- func CompareProfileSampleSlice(expected, actual pprofile.SampleSlice) error
- func CompareProfileValueTypeSlice(expected, actual pprofile.ValueTypeSlice) error
- func CompareProfiles(expected, actual pprofile.Profiles, options ...CompareProfilesOption) error
- func CompareResourceProfiles(expected, actual pprofile.ResourceProfiles) error
- func CompareScopeProfiles(expected, actual pprofile.ScopeProfiles) error
- type CompareProfilesOption
- func IgnoreProfileAttributeValue(attributeName string) CompareProfilesOption
- func IgnoreProfileTimestampValues() CompareProfilesOption
- func IgnoreProfilesOrder() CompareProfilesOption
- func IgnoreResourceAttributeValue(attributeName string) CompareProfilesOption
- func IgnoreResourceProfilesOrder() CompareProfilesOption
- func IgnoreScopeAttributeValue(attributeName string) CompareProfilesOption
- func IgnoreScopeProfilesOrder() CompareProfilesOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareProfile ¶
func CompareProfileAttributeUnitSlice ¶
func CompareProfileAttributeUnitSlice(expected, actual pprofile.AttributeUnitSlice) error
func CompareProfileFunctionSlice ¶
func CompareProfileFunctionSlice(expected, actual pprofile.FunctionSlice) error
func CompareProfileLineSlice ¶
func CompareProfileLinkSlice ¶
func CompareProfileLocation ¶
func CompareProfileLocationSlice ¶
func CompareProfileLocationSlice(expected, actual pprofile.LocationSlice) error
func CompareProfileMappingSlice ¶
func CompareProfileMappingSlice(expected, actual pprofile.MappingSlice) error
func CompareProfileSample ¶
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.