(ctx context.Context)
| 173 | } |
| 174 | |
| 175 | func resolveSuccess(ctx context.Context) bool { |
| 176 | status := internallogging.GetResponseStatus(ctx) |
| 177 | if status == 0 { |
| 178 | return true |
| 179 | } |
| 180 | return status < httpStatusBadRequest |
| 181 | } |
| 182 | |
| 183 | func resolveEndpoint(ctx context.Context) string { |
| 184 | return strings.TrimSpace(internallogging.GetEndpoint(ctx)) |