telemetry

package
v2.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeCoverageErrors

func CodeCoverageErrors()

CodeCoverageErrors the number of errors while processing code coverage by CI Visibility.

func CodeCoverageFiles

func CodeCoverageFiles(value float64)

CodeCoverageFiles records the number of files in the code coverage report by CI Visibility.

func CodeCoverageFinished

func CodeCoverageFinished(testingFramework string, coverageLibraryType CoverageLibraryType)

CodeCoverageFinished the number of code coverage finished calls by CI Visibility

func CodeCoverageIsEmpty

func CodeCoverageIsEmpty()

CodeCoverageIsEmpty the number of code coverage payloads that are empty by CI Visibility.

func CodeCoverageStarted

func CodeCoverageStarted(testingFramework string, coverageLibraryType CoverageLibraryType)

CodeCoverageStarted the number of code coverage start calls by CI Visibility

func EarlyFlakeDetectionRequest

func EarlyFlakeDetectionRequest(requestCompressed RequestCompressedType)

EarlyFlakeDetectionRequest the number of requests sent to the early flake detection endpoint, tagged by the request compressed type.

func EarlyFlakeDetectionRequestErrors

func EarlyFlakeDetectionRequestErrors(errorType ErrorType)

EarlyFlakeDetectionRequestErrors the number of requests sent to the early flake detection endpoint that errored, tagged by the error type.

func EarlyFlakeDetectionRequestMs

func EarlyFlakeDetectionRequestMs(value float64)

EarlyFlakeDetectionRequestMs records the time it takes to get the response of the early flake detection endpoint request in ms by CI Visibility.

func EarlyFlakeDetectionResponseBytes

func EarlyFlakeDetectionResponseBytes(responseCompressedType ResponseCompressedType, value float64)

EarlyFlakeDetectionResponseBytes records the number of bytes received by the endpoint. Tagged with a boolean flag set to true if response body is compressed.

func EarlyFlakeDetectionResponseTests

func EarlyFlakeDetectionResponseTests(value float64)

EarlyFlakeDetectionResponseTests records the number of tests in the response of the early flake detection endpoint by CI Visibility.

func EndpointEventsSerializationMs

func EndpointEventsSerializationMs(endpointType EndpointType, value float64)

EndpointEventsSerializationMs records the time it takes to serialize the events in the payload sent to the endpoint in ms by CI Visibility.

func EndpointPayloadBytes

func EndpointPayloadBytes(endpointType EndpointType, value float64)

EndpointPayloadBytes records the size in bytes of the serialized payload by CI Visibility.

func EndpointPayloadDropped

func EndpointPayloadDropped(endpointType EndpointType)

EndpointPayloadDropped the number of payloads dropped after all retries by CI Visibility

func EndpointPayloadEventsCount

func EndpointPayloadEventsCount(endpointType EndpointType, value float64)

EndpointPayloadEventsCount records the number of events in the payload sent to the endpoint by CI Visibility.

func EndpointPayloadRequests

func EndpointPayloadRequests(endpointType EndpointType, requestCompressedType RequestCompressedType)

EndpointPayloadRequests the number of requests sent to the endpoint, regardless of success, tagged by endpoint type

func EndpointPayloadRequestsErrors

func EndpointPayloadRequestsErrors(endpointType EndpointType, errorType ErrorType)

EndpointPayloadRequestsErrors the number of requests sent to the endpoint that errored, tagget by the error type and endpoint type and status code

func EndpointPayloadRequestsMs

func EndpointPayloadRequestsMs(endpointType EndpointType, value float64)

EndpointPayloadRequestsMs records the time it takes to send the payload sent to the endpoint in ms by CI Visibility.

func EventCreated

func EventCreated(testingFramework string, eventType TestingEventType)

EventCreated the number of events created by CI Visibility

func EventFinished

func EventFinished(testingFramework string, eventType TestingEventType)

EventFinished the number of events finished by CI Visibility

func EventsEnqueueForSerialization

func EventsEnqueueForSerialization()

EventsEnqueueForSerialization the number of events enqueued for serialization by CI Visibility

func GitCommand

func GitCommand(commandType CommandType)

GitCommand the number of git commands executed by CI Visibility

func GitCommandErrors

func GitCommandErrors(commandType CommandType, exitCode CommandExitCodeType)

GitCommandErrors the number of git command that errored by CI Visibility

func GitCommandMs

func GitCommandMs(commandType CommandType, value float64)

GitCommandMs records the time it takes to execute a git command in ms by CI Visibility.

func GitRequestsObjectsPack

func GitRequestsObjectsPack(requestCompressed RequestCompressedType)

GitRequestsObjectsPack the number of requests sent to the objects pack endpoint, tagged by the request compressed type.

func GitRequestsObjectsPackBytes

func GitRequestsObjectsPackBytes(value float64)

GitRequestsObjectsPackBytes records the sum of the sizes of the object pack files inside a single payload by CI Visibility

func GitRequestsObjectsPackErrors

func GitRequestsObjectsPackErrors(errorType ErrorType)

GitRequestsObjectsPackErrors the number of requests sent to the objects pack endpoint that errored, tagged by the error type.

func GitRequestsObjectsPackFiles

func GitRequestsObjectsPackFiles(value float64)

GitRequestsObjectsPackFiles records the number of files sent in the object pack payload by CI Visibility.

func GitRequestsObjectsPackMs

func GitRequestsObjectsPackMs(value float64)

GitRequestsObjectsPackMs records the time it takes to get the response of the objects pack request in ms by CI Visibility.

func GitRequestsSearchCommits

func GitRequestsSearchCommits(requestCompressed RequestCompressedType)

GitRequestsSearchCommits the number of requests sent to the search commit endpoint, regardless of success.

func GitRequestsSearchCommitsErrors

func GitRequestsSearchCommitsErrors(errorType ErrorType)

GitRequestsSearchCommitsErrors the number of requests sent to the search commit endpoint that errored, tagged by the error type.

func GitRequestsSearchCommitsMs

func GitRequestsSearchCommitsMs(responseCompressedType ResponseCompressedType, value float64)

GitRequestsSearchCommitsMs records the time it takes to get the response of the search commit quest in ms by CI Visibility.

func GitRequestsSettings

func GitRequestsSettings(requestCompressed RequestCompressedType)

GitRequestsSettings the number of requests sent to the settings endpoint, tagged by the request compressed type.

func GitRequestsSettingsErrors

func GitRequestsSettingsErrors(errorType ErrorType)

GitRequestsSettingsErrors the number of requests sent to the settings endpoint that errored, tagged by the error type.

func GitRequestsSettingsMs

func GitRequestsSettingsMs(value float64)

GitRequestsSettingsMs records the time it takes to get the response of the settings endpoint request in ms by CI Visibility.

func GitRequestsSettingsResponse

func GitRequestsSettingsResponse(settingsResponseType SettingsResponseType)

GitRequestsSettingsResponse the number of settings responses received by CI Visibility, tagged by the settings response type.

func ITRForcedRun

func ITRForcedRun(eventType TestingEventType)

ITRForcedRun the number of tests or test suites that would've been skipped by ITR but were forced to run because of their unskippable status by CI Visibility.

func ITRSkippableTestsRequest

func ITRSkippableTestsRequest(requestCompressed RequestCompressedType)

ITRSkippableTestsRequest the number of requests sent to the ITR skippable tests endpoint, tagged by the request compressed type.

func ITRSkippableTestsRequestErrors

func ITRSkippableTestsRequestErrors(errorType ErrorType)

ITRSkippableTestsRequestErrors the number of requests sent to the ITR skippable tests endpoint that errored, tagged by the error type.

func ITRSkippableTestsRequestMs

func ITRSkippableTestsRequestMs(value float64)

ITRSkippableTestsRequestMs records the time it takes to get the response of the itr skippable tests endpoint request in ms by CI Visibility.

func ITRSkippableTestsResponseBytes

func ITRSkippableTestsResponseBytes(responseCompressedType ResponseCompressedType, value float64)

ITRSkippableTestsResponseBytes records the number of bytes received by the endpoint. Tagged with a boolean flag set to true if response body is compressed.

func ITRSkippableTestsResponseTests

func ITRSkippableTestsResponseTests(value float64)

ITRSkippableTestsResponseTests the number of tests received in the ITR skippable tests response by CI Visibility.

func ITRSkipped

func ITRSkipped(eventType TestingEventType)

ITRSkipped the number of ITR tests skipped by CI Visibility, tagged by the event type.

func ITRUnskippable

func ITRUnskippable(eventType TestingEventType)

ITRUnskippable the number of ITR tests unskippable by CI Visibility, tagged by the event type.

Types

type CommandExitCodeType

type CommandExitCodeType string

CommandExitCodeType is a type for command exit codes

const (
	MissingCommandExitCode  CommandExitCodeType = "exit_code:missing"
	UnknownCommandExitCode  CommandExitCodeType = "exit_code:unknown"
	ECMinus1CommandExitCode CommandExitCodeType = "exit_code:-1"
	EC1CommandExitCode      CommandExitCodeType = "exit_code:1"
	EC2CommandExitCode      CommandExitCodeType = "exit_code:2"
	EC127CommandExitCode    CommandExitCodeType = "exit_code:127"
	EC128CommandExitCode    CommandExitCodeType = "exit_code:128"
	EC129CommandExitCode    CommandExitCodeType = "exit_code:129"
)

type CommandType

type CommandType string

CommandType is a type for commands types

const (
	NotSpecifiedCommandsType    CommandType = ""
	GetRepositoryCommandsType   CommandType = "command:get_repository"
	GetBranchCommandsType       CommandType = "command:get_branch"
	GetRemoteCommandsType       CommandType = "command:get_remote"
	GetHeadCommandsType         CommandType = "command:get_head"
	CheckShallowCommandsType    CommandType = "command:check_shallow"
	UnshallowCommandsType       CommandType = "command:unshallow"
	GetLocalCommitsCommandsType CommandType = "command:get_local_commits"
	GetObjectsCommandsType      CommandType = "command:get_objects"
	PackObjectsCommandsType     CommandType = "command:pack_objects"
)

type CoverageLibraryType

type CoverageLibraryType string

CoverageLibraryType is a type for coverage library types

const (
	DefaultCoverageLibraryType CoverageLibraryType = "library:default"
	UnknownCoverageLibraryType CoverageLibraryType = "library:unknown"
)

type EndpointType

type EndpointType string

EndpointType is a type for endpoint types

const (
	TestCycleEndpointType    EndpointType = "endpoint:test_cycle"
	CodeCoverageEndpointType EndpointType = "endpoint:code_coverage"
)

type ErrorType

type ErrorType []string

ErrorType is a type for error types

var (
	TimeoutErrorType       ErrorType = []string{"error_type:timeout"}
	NetworkErrorType       ErrorType = []string{"error_type:network"}
	StatusCodeErrorType    ErrorType = []string{"error_type:status_code"}
	StatusCode4xxErrorType ErrorType = []string{"error_type:status_code_4xx_response"}
	StatusCode5xxErrorType ErrorType = []string{"error_type:status_code_5xx_response"}
	StatusCode400ErrorType ErrorType = []string{"error_type:status_code_4xx_response", "status_code:400"}
	StatusCode401ErrorType ErrorType = []string{"error_type:status_code_4xx_response", "status_code:401"}
	StatusCode403ErrorType ErrorType = []string{"error_type:status_code_4xx_response", "status_code:403"}
	StatusCode404ErrorType ErrorType = []string{"error_type:status_code_4xx_response", "status_code:404"}
	StatusCode408ErrorType ErrorType = []string{"error_type:status_code_4xx_response", "status_code:408"}
	StatusCode429ErrorType ErrorType = []string{"error_type:status_code_4xx_response", "status_code:429"}
)

func GetErrorTypeFromStatusCode

func GetErrorTypeFromStatusCode(statusCode int) ErrorType

type RequestCompressedType

type RequestCompressedType string

RequestCompressedType is a type for request compressed types

const (
	UncompressedRequestCompressedType RequestCompressedType = ""
	CompressedRequestCompressedType   RequestCompressedType = "rq_compressed:true"
)

type ResponseCompressedType

type ResponseCompressedType string

ResponseCompressedType is a type for response compressed types

const (
	UncompressedResponseCompressedType ResponseCompressedType = ""
	CompressedResponseCompressedType   ResponseCompressedType = "rs_compressed:true"
)

type SettingsResponseType

type SettingsResponseType []string

SettingsResponseType is a type for settings response types

var (
	CoverageEnabledSettingsResponseType SettingsResponseType = []string{"coverage_enabled"}
	ItrSkipEnabledSettingsResponseType  SettingsResponseType = []string{"itrskip_enabled"}
	EfdEnabledSettingsResponseType      SettingsResponseType = []string{"early_flake_detection_enabled:true"}
)

type TestingEventType

type TestingEventType []string

TestingEventType is a type for testing event types

var (
	TestEventType    TestingEventType = []string{"event_type:test"}
	SuiteEventType   TestingEventType = []string{"event_type:suite"}
	ModuleEventType  TestingEventType = []string{"event_type:module"}
	SessionEventType TestingEventType = []string{"event_type:session"}

	UnsupportedCiEventType TestingEventType = []string{"is_unsupported_ci"}
	HasCodeOwnerEventType  TestingEventType = []string{"has_codeowner"}
	IsNewEventType         TestingEventType = []string{"is_new:true"}
	IsRetryEventType       TestingEventType = []string{"is_retry:true"}
	EfdAbortSlowEventType  TestingEventType = []string{"early_flake_detection_abort_reason:slow"}
	IsBenchmarkEventType   TestingEventType = []string{"is_benchmark"}
)

type TestingFramework

type TestingFramework string

TestingFramework is a type for testing frameworks

const (
	GoTestingFramework TestingFramework = "test_framework:testing"
	UnknownFramework   TestingFramework = "test_framework:unknown"
)

Jump to

Keyboard shortcuts

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