//go:linkname getIndicator func getIndicator() uint8 //go:linkname setIndicator func setIndicator(uint8) const indicatorUnset … const indicatorFalse … const indicatorTrue … // ResetServiceIndicator clears the service indicator for the running goroutine. func ResetServiceIndicator() { … } // ServiceIndicator returns true if and only if all services invoked by this // goroutine since the last ResetServiceIndicator call are approved. // // If ResetServiceIndicator was not called before by this goroutine, its return // value is undefined. func ServiceIndicator() bool { … } // RecordApproved is an internal function that records the use of an approved // service. It does not override RecordNonApproved calls in the same span. func RecordApproved() { … } // RecordNonApproved is an internal function that records the use of a // non-approved service. It overrides any RecordApproved calls in the same span. func RecordNonApproved() { … }