Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleDestination ¶ added in v1.18.3
func HandleDestination(sourceWlNs, sourceWl, destSvcNs, destSvc, destSvcName, destWlNs, destWl, destApp, destVer string) (string, string, string, string, string, string, bool)
HandleDestination modifies the destination information, when necessary, for various corner cases. It should be called after source validation and before destination processing. Returns destSvcNs, destSvcName, destWlNs, destWl, destApp, destVersion, isupdated
func HandleResponseCode ¶ added in v1.12.1
func HandleResponseCode(protocol, responseCode string, grpcResponseStatusOk bool, grpcResponseStatus string) string
HandleResponseCode determines the proper response code based on how istio has set the response_code and grpc_response_status attributes. grpc_response_status was added upstream in Istio 1.5 and downstream in OSSM 1.1. We support it here in a backward compatible way. return "-" for requests that did not receive a response, regardless of protocol return HTTP response code when:
- protocol is not GRPC
- the version running does not supply the GRPC status
- the protocol is GRPC but the HTTP transport fails (i.e. an HTTP error is reported, rare).
return the GRPC status, otherwise.
func IsBadDestTelemetry ¶ added in v1.15.2
IsBadDestTelemetry tests for known issues in generated telemetry given indicative label values.
- During pod lifecycle changes incomplete telemetry may be generated that results in destSvc == destSvcName and no dest workload, where destSvc[Name] is in the form of an IP address.
- no more conditions known
func IsBadSourceTelemetry ¶ added in v1.15.2
IsBadSourceTelemetry tests for known issues in generated telemetry given indicative label values. 1) source namespace is provided with neither workload nor app 2) no more conditions known
Types ¶
This section is empty.